lkml.org 
[lkml]   [2016]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [Xen-devel] [PATCH linux 2/8] xen: introduce xen_vcpu_id mapping
    From
    Date
    On 28/06/16 17:47, Vitaly Kuznetsov wrote:
    > @@ -1808,6 +1822,8 @@ static int xen_hvm_cpu_notify(struct notifier_block *self, unsigned long action,
    > int cpu = (long)hcpu;
    > switch (action) {
    > case CPU_UP_PREPARE:
    > + /* vLAPIC_ID == Xen's vCPU_ID * 2 for HVM guests */
    > + per_cpu(xen_vcpu_id, cpu) = cpu_physical_id(cpu) / 2;

    Please do not assume or propagate this brokenness. It is incorrect in
    the general case, and I will be fixing in the hypervisor in due course.

    Always read the APIC_ID from the LAPIC, per regular hardware.

    ~Andrew

    \
     
     \ /
      Last update: 2016-06-28 20:21    [W:4.090 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site