qemu-devel
[Top][All Lists]
Advanced

[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: Roman Kagan
Subject: Re: [Qemu-devel] [PATCH 11/23] hyperv: address HvSintRoute by X86CPU pointer
Date: Wed, 14 Jun 2017 15:14:48 +0300
User-agent: Mutt/1.8.0 (2017-02-23)

On Wed, Jun 14, 2017 at 01:08:43PM +0200, Paolo Bonzini wrote:
> 
> 
> 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?

I think here it makes sense to follow Eduardo's suggestion because this
code doesn't need to know how VP_INDEX is defined.

The real matter is discussed in patch 5, yes.

Thanks,
Roman.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]