Andrew Morton
2007-Apr-18 17:49 UTC
[patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
On Fri, 16 Feb 2007 02:00:39 -0800 "Christian Limpach" <Christian.Limpach@xensource.com> wrote:> Jeremy Fitzhardinge wrote: > > Andrew Morton wrote: > > > On Thu, 15 Feb 2007 22:14:45 -0800 Dan Hecht > > <dhecht@vmware.com> wrote: > > > > > > > > >>> config PREEMPT > > >>> bool "Preemptible Kernel (Low-Latency Desktop)" > > >>> + depends on !XEN > > >>> help > > >>> This option reduces the latency of the kernel by making > > >>> all kernel code (that is not executing in a critical section) > > >>> > > >>> > > > > > > Oh, so that's why it doesn't break when CONFIG_PREEMPT=y. > > In which case > > > that preempt_disable() I spotted is wrong-and-unneeded. > > > > > > Why doesn't Xen work with preemption?? > > > > > > > I've forgotten the details. Ian? Keir? Steven? Maybe it > > can be done. > > With CONFIG_PREEMPT, we can have preempted threads reference machine > addresses across save/restore. After restore, these machine addresses > will be incorrect. >It would help if you could define the terms "save/restore" and "machine addresses". One can guess, but there are probably subtleties here.. Are the places where the domU code references machine addresses splattered all over the code? If not, they can just be wrapped with preempt_disable/preempt_enable?
Christian Limpach
2007-Apr-18 17:49 UTC
[patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
Jeremy Fitzhardinge wrote:> Andrew Morton wrote: > > On Thu, 15 Feb 2007 22:14:45 -0800 Dan Hecht > <dhecht@vmware.com> wrote: > > > > > >>> config PREEMPT > >>> bool "Preemptible Kernel (Low-Latency Desktop)" > >>> + depends on !XEN > >>> help > >>> This option reduces the latency of the kernel by making > >>> all kernel code (that is not executing in a critical section) > >>> > >>> > > > > Oh, so that's why it doesn't break when CONFIG_PREEMPT=y. > In which case > > that preempt_disable() I spotted is wrong-and-unneeded. > > > > Why doesn't Xen work with preemption?? > > > > I've forgotten the details. Ian? Keir? Steven? Maybe it > can be done.With CONFIG_PREEMPT, we can have preempted threads reference machine addresses across save/restore. After restore, these machine addresses will be incorrect. Christian
Reasonably Related Threads
- [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
- [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
- [PATCH] x86, Allow x2apic without IR on VMware platform.
- [patch 0/4] Revised softlockup watchdog improvement patches
- [PATCH] x86, Allow x2apic without IR on VMware platform.