Re: [RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-06-03 Thread Vitaly Kuznetsov
"Huang, Kai" writes: > On Wed, 2020-05-27 at 10:39 +0200, Vitaly Kuznetsov wrote: >> Sean Christopherson writes: >> >> > On Mon, May 25, 2020 at 06:15:25PM +0300, Kirill A. Shutemov wrote: >> > > On Mon, May 25, 2020 at 04:58:51PM +0200, Vitaly Kuznetsov wrote: >> > > > > @@ -727,6 +734,15 @@

Re: [RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-06-02 Thread Huang, Kai
On Wed, 2020-05-27 at 10:39 +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > On Mon, May 25, 2020 at 06:15:25PM +0300, Kirill A. Shutemov wrote: > > > On Mon, May 25, 2020 at 04:58:51PM +0200, Vitaly Kuznetsov wrote: > > > > > @@ -727,6 +734,15 @@ static void __init

Re: [RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-05-27 Thread Sean Christopherson
On Wed, May 27, 2020 at 10:39:33AM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > On Mon, May 25, 2020 at 06:15:25PM +0300, Kirill A. Shutemov wrote: > >> On Mon, May 25, 2020 at 04:58:51PM +0200, Vitaly Kuznetsov wrote: > >> > > @@ -727,6 +734,15 @@ static void __init

Re: [RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-05-27 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Mon, May 25, 2020 at 06:15:25PM +0300, Kirill A. Shutemov wrote: >> On Mon, May 25, 2020 at 04:58:51PM +0200, Vitaly Kuznetsov wrote: >> > > @@ -727,6 +734,15 @@ static void __init kvm_init_platform(void) >> > > { >> > > kvmclock_init(); >> > >

Re: [RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-05-26 Thread Sean Christopherson
On Mon, May 25, 2020 at 06:15:25PM +0300, Kirill A. Shutemov wrote: > On Mon, May 25, 2020 at 04:58:51PM +0200, Vitaly Kuznetsov wrote: > > > @@ -727,6 +734,15 @@ static void __init kvm_init_platform(void) > > > { > > > kvmclock_init(); > > > x86_platform.apic_post_init = kvm_apic_init; > > >

Re: [RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-05-25 Thread Kirill A. Shutemov
On Mon, May 25, 2020 at 04:58:51PM +0200, Vitaly Kuznetsov wrote: > "Kirill A. Shutemov" writes: > > > Provide basic helpers, KVM_FEATURE and a hypercall. > > > > Host side doesn't provide the feature yet, so it is a dead code for now. > > > > Signed-off-by: Kirill A. Shutemov > > --- > >

Re: [RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-05-25 Thread Vitaly Kuznetsov
"Kirill A. Shutemov" writes: > Provide basic helpers, KVM_FEATURE and a hypercall. > > Host side doesn't provide the feature yet, so it is a dead code for now. > > Signed-off-by: Kirill A. Shutemov > --- > arch/x86/include/asm/kvm_para.h | 5 + > arch/x86/include/uapi/asm/kvm_para.h

[RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-05-22 Thread Kirill A. Shutemov
Provide basic helpers, KVM_FEATURE and a hypercall. Host side doesn't provide the feature yet, so it is a dead code for now. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/kvm_para.h | 5 + arch/x86/include/uapi/asm/kvm_para.h | 3 ++- arch/x86/kernel/kvm.c