From: Andrew Cooper Subject: Re: [PATCH] x86/hvm: Extend HVM cpuid leaf with vcpu id Date: Thu, 11 Dec 2014 19:00:55 +0000 Message-ID: <5489E9E7.8020608@citrix.com> References: <1415286430-11155-1-git-send-email-paul.durrant@citrix.com> <20141106193249.GB5906@laptop.dumpdata.com> <545BE7DF.2090803@citrix.com> <20141210055958.GA28631@u109add4315675089e695.ant.amazon.com> <54882222.7090005@citrix.com> <20141211181913.GB29692@u109add4315675089e695.ant.amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141211181913.GB29692@u109add4315675089e695.ant.amazon.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: Matt Wilson Cc: xen-devel@lists.xen.org, Paul Durrant , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 11/12/14 18:19, Matt Wilson wrote: > On Wed, Dec 10, 2014 at 10:36:18AM +0000, Andrew Cooper wrote: >> On 10/12/14 06:00, Matt Wilson wrote: >>> That's not strictly true. You can use the processor index in ACPI. >> The LAPIC objects in the MADT/APIC table? That is still constructed >> with the broken LAPIC_ID = 2 * processor_id logic. > Have you checked on an EC2 instance (for example: C3, I2, R3)? I meant in terms of upstream code. I will believe you when you say that those instances do it differently. My point was that the processor index is only as accurate as hvmloader makes it, and upstream, this relies on the broken logic. Even if hvmloader is altered and does things differently, it is still bogus to draw any inference of vcpu_id from processor id. ~Andrew