From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH RFC v12 08/21] pvh: vmx-specific changes Date: Mon, 16 Sep 2013 10:15:55 +0100 Message-ID: <5236CC4B.9080703@eu.citrix.com> References: <1379089521-25720-1-git-send-email-george.dunlap@eu.citrix.com> <1379089521-25720-9-git-send-email-george.dunlap@eu.citrix.com> <52333F91.7080606@eu.citrix.com> <5236D14702000078000F3823@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5236D14702000078000F3823@nat28.tlf.novell.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: Jan Beulich Cc: Tim Deegan , Keir Fraser , Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 16/09/13 08:37, Jan Beulich wrote: >>>> On 13.09.13 at 18:38, George Dunlap wrote: >> On 13/09/13 17:25, George Dunlap wrote: >>> + /* PVH: Why is ET not set? */ >>> + v->arch.hvm_vcpu.guest_cr[0] = is_pvh_domain(d) ? >>> + ( X86_CR0_PG | X86_CR0_NE | X86_CR0_PE | X86_CR0_WP ) >>> + : ( X86_CR0_PE | X86_CR0_ET ); >> I also couldn't figure out why CR0_ET wasn't set for PVH vms; is it not >> set for PV vms? > This one's certainly wrong - it shouldn't even be possible to clear > CR0.ET in hardware on anything post-486 (i.e. trying to clear it > would be silently ignored by the hardware, and not setting it in > the code above is merely confusing, but not actively breaking > anything). Right -- so it would be better if this were something like: v->arch.hvm_vcpu.guest_cr[0] = $SHARED_FLAGS; if ( is_pvh_domain(d)) v->arch.hvm_vcpu.guest_cr[0] |= $PVH_FLAGS. -George