From: "Jan Beulich" Subject: Re: [PATCH v4 1/4] x86/HVM: fix miscellaneous aspects of x2APIC emulation Date: Wed, 24 Sep 2014 09:02:03 +0100 Message-ID: <5422969B02000078000380C1@mail.emea.novell.com> References: <541B09B402000078000363B4@mail.emea.novell.com> <541B0BB402000078000363BF@mail.emea.novell.com> <542020C2.9000304@citrix.com> <542042D902000078000370FC@mail.emea.novell.com> <5421A64B.30507@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XWhWc-0002oC-1h for xen-devel@lists.xenproject.org; Wed, 24 Sep 2014 08:02:10 +0000 In-Reply-To: <5421A64B.30507@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: xen-devel , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 23.09.14 at 18:56, wrote: > On 22/09/14 14:40, Jan Beulich wrote: >>>>> On 22.09.14 at 15:14, wrote: >>> On 18/09/14 15:43, Jan Beulich wrote: >>>> @@ -891,16 +876,33 @@ int hvm_x2apic_msr_write(struct vcpu *v, >>>> >>>> switch ( offset ) >>>> { >>>> - int rc; >>>> + case APIC_TASKPRI: >>>> + case APIC_EOI: >>>> + case APIC_SPIV: >>>> + case APIC_CMCI: >>>> + case APIC_LVTT ... APIC_LVTERR: >>>> + case APIC_TMICT: >>>> + case APIC_TMCCT: >>>> + case APIC_TDCR: >>> Most (all?) of these MSRs have reserved bits, which should fail with a >>> #GP(0) for attempts to set. vlapic_reg_read() masks most of the relevant >>> bits, but doesn't appear to hit a misbehaving VM. >> Perhaps, but not in this patch. > > Does it not count towards fixing misc aspects of x2APIC emulation? Sure it does - I guess I should go and see by how much it grows the patch (I really don't want it to double its size because of this). Jan