[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 11/23] hyperv: address HvSintRoute by X86CPU poi
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 11/23] hyperv: address HvSintRoute by X86CPU pointer |
Date: |
Wed, 14 Jun 2017 13:08:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 13/06/2017 21:02, Eduardo Habkost wrote:
>> @@ -101,16 +101,18 @@ static void hv_test_dev_control(void *opaque, hwaddr
>> addr, uint64_t data,
>> uint8_t sint = data & 0xFF;
>> uint8_t vcpu_id = (data >> 8ULL) & 0xFF;
>
> vcpu_id risks being confused KVM's vcpu_id (which is the CPU APIC
> ID in x86). If you are already touching this code, this could be
> renamed to vp_index to avoid confusion.
Actually the VP_INDEX is _also_ the vcpu_id. Should we just document
that KVM makes the VP_INDEX equal to the CPU APIC id, and adjust patch 5
accordingly?
Paolo