[Devel] [PATCH v2 1/4] Revert "kvm/x86: clear hyperv synic pages only when guest modifies MSRs"

2017-10-10 Thread Roman Kagan
This reverts commit d385b9f5e7a4c225b1463655484daeebb1ca79dd. It will be replaced by a backported mainstream commit with different behavior. Signed-off-by: Roman Kagan --- arch/x86/kvm/hyperv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Devel] [PATCH v2 4/4] kvm: x86: hyperv: make VP_INDEX managed by userspace

2017-10-10 Thread Roman Kagan
Hyper-V identifies vCPUs by Virtual Processor Index, which can be queried 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. APIC ids can be sparse and thus aren't a valid replacement for VP indices. Current KVM

[Devel] [PATCH v2 0/4] kvm: hyperv: backport latest stuff from mainstream

2017-10-10 Thread Roman Kagan
These are backports of the latest commits to hyperv subsystem in mainsteram KVM (as of 4.13). They address a couple of design flaws, and are necessary for the latest hyperv code in QEMU to work properly. v1 -> v2: - replace incremental patch with a revert and a fresh backport - pull in an