On Thu, Jan 17, 2013 at 06:59:31PM -0200, Eduardo Habkost wrote:
> The CPU ID in KVM is supposed to be the APIC ID, so change the
> KVM_CREATE_VCPU call to match it. The current behavior didn't break
> anything yet because today the APIC ID is assumed to be equal to the CPU
> index, but this won't be true in the future.
> 
> Signed-off-by: Eduardo Habkost <[email protected]>
> ---
> Cc: [email protected]
> Cc: Michael S. Tsirkin <[email protected]>
> Cc: Gleb Natapov <[email protected]>
> Cc: Marcelo Tosatti <[email protected]>
> 
> Changes v2:
>  - Change only i386 code (kvm_arch_vcpu_id())
> 
> Changes v3:
>  - Get CPUState as argument instead of CPUArchState
> ---
>  target-i386/kvm.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Reviewed-by: Marcelo Tosatti <[email protected]>


Reply via email to