From: Keir Fraser Subject: Re: Re: [PATCH] Fix __XEN_INTERFACE_VERSION__ old config breakage Date: Fri, 7 Apr 2006 09:54:10 +0100 Message-ID: <3dbe81f0ccac9ae0aff4d67402ce4cd7@cl.cam.ac.uk> References: <20060404224615.7472.23940.sendpatchset@cherry.local> <3d8eece20604061733v235f1c1dpd9eac8f474d5b8b2@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Magnus Damm Cc: Magnus Damm , xen-devel@lists.xensource.com, Christian.Limpach@cl.cam.ac.uk List-Id: xen-devel@lists.xenproject.org On 7 Apr 2006, at 08:48, Magnus Damm wrote: >> Does this lead to a kernel that actually works (e.g., can you sgut it >> down without crashing)? I doubt it. > > I use a kernel config without CONFIG_XEN_INTERFACE_VERSION, and > building and running dom0 on x86 (in qemu) seems ok to me. I tried 'xm save' on such a domU and that doesn't work. The reason is that the kernel tree expects to be calling the new sched_op hypercall, but because the interface version gets defined to zero, it actually calls the old sched_op hypercall which takes different arguments. I also tried rebooting such a domU and that doesn't work (the guest is killed but not restarted) -- again because the old and new sched_op hypercall take their arguments in different ways. These problems are somewhat hidden I suppose, since you can boot and run happily with the domain for the most part, but it illustrates that if a guest is defining an obviously interface version we should fail the build, not build some inconsistent combination of guest kernel and hypervisor interface! -- Keir