Re: [PATCH] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-10-14 Thread Vitaly Kuznetsov
Tianyu Lan writes: >> > --- a/linux-headers/linux/kvm.h >> > +++ b/linux-headers/linux/kvm.h >> > @@ -995,6 +995,7 @@ struct kvm_ppc_resize_hpt { >> > #define KVM_CAP_ARM_SVE 170 >> > #define KVM_CAP_ARM_PTRAUTH_ADDRESS 171 >> > #define KVM_CAP_ARM_PTRAUTH_GENERIC 172 >> > +#define KVM_CAP_HYP

RE: [PATCH] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-10-14 Thread Tianyu Lan
On Mon, Oct 14, 2019 at 9:48 PM Cornelia Huck wrote: > > On Mon, 14 Oct 2019 13:29:12 + > Tianyu Lan wrote: > > > > > diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h > > > > index 18892d6541..923fb33a01 100644 > > > > --- a/linux-headers/linux/kvm.h > > > > +++ b/linux-head

Re: [PATCH] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-10-14 Thread Tianyu Lan
Hi Vitaly: Thanks a lot for your review. On Sun, Oct 13, 2019 at 4:49 PM Vitaly Kuznetsov wrote: > > lantianyu1...@gmail.com writes: > > > From: Tianyu Lan > > > > (Please also Cc: Roman on you Hyper-V related submissions to QEMU who's > known to be a great reviewer) Good suggest

Re: [PATCH] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-10-14 Thread Cornelia Huck
On Mon, 14 Oct 2019 13:29:12 + Tianyu Lan wrote: > > > diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h > > > index 18892d6541..923fb33a01 100644 > > > --- a/linux-headers/linux/kvm.h > > > +++ b/linux-headers/linux/kvm.h > > > @@ -995,6 +995,7 @@ struct kvm_ppc_resize_hpt {

Re: [PATCH] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-10-13 Thread Vitaly Kuznetsov
lantianyu1...@gmail.com writes: > From: Tianyu Lan > (Please also Cc: Roman on you Hyper-V related submissions to QEMU who's known to be a great reviewer) > Hyper-V direct tlb flush targets KVM on Hyper-V guest. > Enable direct TLB flush for its guests meaning that TLB > flush hypercalls are ha

[PATCH] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-10-11 Thread lantianyu1986
From: Tianyu Lan Hyper-V direct tlb flush targets KVM on Hyper-V guest. Enable direct TLB flush for its guests meaning that TLB flush hypercalls are handled by Level 0 hypervisor (Hyper-V) bypassing KVM in Level 1. Due to the different ABI for hypercall parameters between Hyper-V and KVM, KVM cap