Re: [Qemu-devel] [PATCH v2 07/23] hyperv: ensure VP index equal to QEMU cpu_index

2017-06-29 Thread Roman Kagan
On Thu, Jun 29, 2017 at 04:39:00PM +0200, Igor Mammedov wrote: > On Thu, 29 Jun 2017 16:10:20 +0300 > Roman Kagan wrote: > > > On Thu, Jun 29, 2017 at 01:53:29PM +0200, Igor Mammedov wrote: > > > On Thu, 29 Jun 2017 12:53:27 +0300 > > > Roman Kagan wrote: > > > > > > > On Wed, Jun 28, 2017 at

Re: [Qemu-devel] [PATCH v2 07/23] hyperv: ensure VP index equal to QEMU cpu_index

2017-06-29 Thread Igor Mammedov
On Thu, 29 Jun 2017 16:10:20 +0300 Roman Kagan wrote: > On Thu, Jun 29, 2017 at 01:53:29PM +0200, Igor Mammedov wrote: > > On Thu, 29 Jun 2017 12:53:27 +0300 > > Roman Kagan wrote: > > > > > On Wed, Jun 28, 2017 at 04:47:43PM +0200, Igor Mammedov wrote: > > > > On Wed, 21 Jun 2017 19:24:08

Re: [Qemu-devel] [PATCH v2 07/23] hyperv: ensure VP index equal to QEMU cpu_index

2017-06-29 Thread Roman Kagan
On Thu, Jun 29, 2017 at 01:53:29PM +0200, Igor Mammedov wrote: > On Thu, 29 Jun 2017 12:53:27 +0300 > Roman Kagan wrote: > > > On Wed, Jun 28, 2017 at 04:47:43PM +0200, Igor Mammedov wrote: > > > On Wed, 21 Jun 2017 19:24:08 +0300 > > > Roman Kagan wrote: > > > > > > > Hyper-V identifies vCPU

Re: [Qemu-devel] [PATCH v2 07/23] hyperv: ensure VP index equal to QEMU cpu_index

2017-06-29 Thread Igor Mammedov
On Thu, 29 Jun 2017 12:53:27 +0300 Roman Kagan wrote: > On Wed, Jun 28, 2017 at 04:47:43PM +0200, Igor Mammedov wrote: > > On Wed, 21 Jun 2017 19:24:08 +0300 > > Roman Kagan wrote: > > > > > Hyper-V identifies vCPUs by Virtual Processor (VP) index which can be > > > queried by the guest via H

Re: [Qemu-devel] [PATCH v2 07/23] hyperv: ensure VP index equal to QEMU cpu_index

2017-06-29 Thread Roman Kagan
On Wed, Jun 28, 2017 at 04:47:43PM +0200, Igor Mammedov wrote: > On Wed, 21 Jun 2017 19:24:08 +0300 > Roman Kagan wrote: > > > Hyper-V identifies vCPUs by Virtual Processor (VP) index which can be > > queried by the guest via HV_X64_MSR_VP_INDEX msr. It is defined by the > > spec as a sequential

Re: [Qemu-devel] [PATCH v2 07/23] hyperv: ensure VP index equal to QEMU cpu_index

2017-06-28 Thread Igor Mammedov
On Wed, 21 Jun 2017 19:24:08 +0300 Roman Kagan wrote: > Hyper-V identifies vCPUs by Virtual Processor (VP) index which can be > queried by the guest via HV_X64_MSR_VP_INDEX msr. It is defined by the > spec as a sequential number which can't exceed the maximum number of > vCPUs per VM. > > It ha

[Qemu-devel] [PATCH v2 07/23] hyperv: ensure VP index equal to QEMU cpu_index

2017-06-21 Thread Roman Kagan
Hyper-V identifies vCPUs by Virtual Processor (VP) index which can be queried by the guest via HV_X64_MSR_VP_INDEX msr. It is defined by the spec as a sequential number which can't exceed the maximum number of vCPUs per VM. It has to be owned by QEMU in order to preserve it across migration. How