From: Ian Campbell Subject: Re: [PATCH v7 09/15] xen: move VCPUOP_register_vcpu_info to common code Date: Wed, 8 May 2013 10:56:05 +0100 Message-ID: <1368006965.26321.200.camel@zakaz.uk.xensource.com> References: <1367935971-18644-9-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1367935971-18644-9-git-send-email-stefano.stabellini@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Julien Grall , "Tim (Xen.org)" , "xen-devel@lists.xensource.com" , "Keir (Xen.org)" , "JBeulich@suse.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-05-07 at 15:12 +0100, Stefano Stabellini wrote: > Move the implementation of VCPUOP_register_vcpu_info from x86 specific > to commmon code. > > Move vcpu_info_mfn from an arch specific vcpu sub-field to the common > vcpu struct. > Move the initialization of vcpu_info_mfn to common code. > > Move unmap_vcpu_info and the call to unmap_vcpu_info at domain > destruction time to common code. > > Signed-off-by: Stefano Stabellini > Acked-by: Ian Campbell > Acked-by: Keir Fraser > CC: keir@xen.org > CC: JBeulich@suse.com I'm afraid I get conflicts when trying to apply this patch. Mostly they were just context changes which I could deal with but there was one conflict in x86's domain_relinquish_resources which I wasn't too sure about. Can you rebase please? I don't think the code which is moved has changed but if you could confim my conclusion that you aren't accidentally reverting something that would be useful I think. These two commits seem to be the source of the conflicts, with the top one seeming to contain the conflict I wasn't sure about. commit 9626d1c1fafe2da5af6e59478c9e9db6d03144df Author: Jan Beulich Date: Thu May 2 09:29:36 2013 +0200 x86: call unmap_vcpu_info() regardless of guest type This fixes a regression from 63753b3e ("x86: allow VCPUOP_register_vcpu_info to work again on PVHVM guests"). Signed-off-by: Jan Beulich Tested-by: Sander Eikelenboom commit 4939f9a6dee4280f38730fd3066e5dce353112f6 Author: Jan Beulich Date: Thu May 2 16:37:24 2013 +0200 x86: make vcpu_reset() preemptible ... as dropping the old page tables may take significant amounts of time. This is part of CVE-2013-1918 / XSA-45. Signed-off-by: Jan Beulich Acked-by: Tim Deegan Ian.