[PATCH 2/5 v5] KVM: SVM: Fill in conforming svm_x86_ops via macro

2020-11-13 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Reported-by: kernel test robot Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/pmu.h | 2 +- arch/x86/kvm/svm/avic.c | 11 +- arch/x86/kvm/svm/pmu.c | 2 +- arch/x86/kvm/svm/sev.c | 4 +- arch/x86/kvm/svm/sv

[PATCH 3/5 v5] KVM: nSVM: Fill in conforming svm_nested_ops via macro

2020-11-13 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/svm/nested.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 200674190449..4cdeacaf768f 100644 ---

[PATCH 4/5 v5] KVM: VMX: Fill in conforming vmx_x86_ops via macro

2020-11-13 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/pmu.h | 2 +- arch/x86/kvm/vmx/nested.c | 2 +- arch/x86/kvm/vmx/pmu_intel.c | 2 +- arch/x86/kvm/vmx/posted_intr.c | 6 +- arch/x86/kvm/vmx/posted_intr.h | 4 +- arch/x86/kvm

[PATCH 1/5 v5] KVM: x86: Change names of some of the kvm_x86_ops functions to make them more semantical and readable

2020-11-13 Thread Krish Sadhukhan
Suggested-by: Vitaly Kuznetsov Suggested-by: Paolo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/arm64/include/asm/kvm_host.h | 2 +- arch/mips/include/asm/kvm_host.h| 2 +- arch/powerpc/include/asm/kvm_host.h | 2 +- arch/s390/kvm/kvm-s390.c

[PATCH 0/5 v5] KVM: x86: Fill in conforming {vmx|svm}_x86_ops and {vmx|svm}_nested_ops via macros

2020-11-13 Thread Krish Sadhukhan
| 2 +- arch/x86/kvm/x86.c | 43 ++ include/linux/kvm_host.h| 2 +- include/uapi/linux/kvm.h| 6 +- tools/include/uapi/linux/kvm.h | 6 +- virt/kvm/kvm_main.c | 4 +- 26 files changed, 405 insertions(+), 359 deletions(-) Krish Sadhukhan

[PATCH 5/5 v5] KVM: nVMX: Fill in conforming vmx_nested_ops via macro

2020-11-13 Thread Krish Sadhukhan
-by: Paolo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/vmx/evmcs.c | 6 +++--- arch/x86/kvm/vmx/evmcs.h | 4 ++-- arch/x86/kvm/vmx/nested.c | 35 +-- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git

Re: [PATCH 4/5 v4] KVM: VMX: Fill in conforming vmx_x86_ops via macro

2020-11-10 Thread Krish Sadhukhan
On 11/9/20 5:49 PM, Like Xu wrote: Hi Krish, On 2020/11/10 9:23, Krish Sadhukhan wrote: @@ -1192,7 +1192,7 @@ void vmx_set_host_fs_gs(struct vmcs_host_state *host, u16 fs_sel, u16 gs_sel,   }   }   -void vmx_prepare_switch_to_guest(struct kvm_vcpu *vcpu) +void vmx_prepare_guest_switch

[PATCH 3/5 v4] KVM: nSVM: Fill in conforming svm_nested_ops via macro

2020-11-09 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/svm/nested.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 200674190449..4cdeacaf768f 100644 ---

[PATCH 2/5 v4] KVM: SVM: Fill in conforming svm_x86_ops via macro

2020-11-09 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/pmu.h | 2 +- arch/x86/kvm/svm/avic.c | 11 +- arch/x86/kvm/svm/pmu.c | 2 +- arch/x86/kvm/svm/sev.c | 4 +- arch/x86/kvm/svm/svm.c | 296 ++-- arch/x

[PATCH 1/5 v4] KVM: x86: Change names of some of the kvm_x86_ops functions to make them more semantical and readable

2020-11-09 Thread Krish Sadhukhan
Suggested-by: Vitaly Kuznetsov Suggested-by: Paolo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/arm64/include/asm/kvm_host.h | 2 +- arch/mips/include/asm/kvm_host.h| 2 +- arch/powerpc/include/asm/kvm_host.h | 2 +- arch/s390/kvm/kvm-s390.c

[PATCH 4/5 v4] KVM: VMX: Fill in conforming vmx_x86_ops via macro

2020-11-09 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/pmu.h | 2 +- arch/x86/kvm/vmx/nested.c | 4 +- arch/x86/kvm/vmx/pmu_intel.c | 2 +- arch/x86/kvm/vmx/posted_intr.c | 6 +- arch/x86/kvm/vmx/posted_intr.h | 4 +- arch/x86/kvm

[PATCH 5/5 v4] KVM: nVMX: Fill in conforming vmx_nested_ops via macro

2020-11-09 Thread Krish Sadhukhan
-by: Paolo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/vmx/evmcs.c | 6 +++--- arch/x86/kvm/vmx/evmcs.h | 4 ++-- arch/x86/kvm/vmx/nested.c | 35 +-- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git

[PATCH 0/5 v4] KVM: x86: Fill in conforming {vmx|svm}_x86_ops and {vmx|svm}_nested_ops via macros

2020-11-09 Thread Krish Sadhukhan
m.h| 6 +- tools/include/uapi/linux/kvm.h | 6 +- virt/kvm/kvm_main.c | 4 +- 26 files changed, 405 insertions(+), 359 deletions(-) Krish Sadhukhan (5): KVM: x86: Change names of some of the kvm_x86_ops functions to make them more semantical and readable

[PATCH 4/6 v3] KVM: VMX: Fill in conforming vmx_x86_ops via macro

2020-07-27 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/vmx/nested.c | 2 +- arch/x86/kvm/vmx/vmx.c| 234 +++--- arch/x86/kvm/vmx/vmx.h| 2 +- 3 files changed, 120 insertions(+), 118 deletions(-) diff --git

[PATCH 2/6 v3] KVM: SVM: Fill in conforming svm_x86_ops via macro

2020-07-27 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/svm/avic.c | 4 +- arch/x86/kvm/svm/nested.c | 2 +- arch/x86/kvm/svm/sev.c| 6 +- arch/x86/kvm/svm/svm.c| 218 +++--- arch/x86/kvm/svm/svm.h|

[PATCH 6/6 v3] QEMU: x86: Change KVM_MEMORY_ENCRYPT_* #defines to make them conformant to the kernel

2020-07-27 Thread Krish Sadhukhan
Suggested-by: Vitaly Kuznetsov Suggested-by: Paolo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- target/i386/sev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/i386/sev.c b/target/i386/sev.c index c3ecf86..0913782 100644

[PATCH 3/6 v3] KVM: nSVM: Fill in conforming svm_nested_ops via macro

2020-07-27 Thread Krish Sadhukhan
lo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/svm/nested.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 3be6256..7cb834a 100644 --- a/arch/x

[PATCH 1/6 v3] KVM: x86: Change names of some of the kvm_x86_ops functions to make them more semantical and readable

2020-07-27 Thread Krish Sadhukhan
Suggested-by: Vitaly Kuznetsov Suggested-by: Paolo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/arm64/include/asm/kvm_host.h | 2 +- arch/mips/include/asm/kvm_host.h| 2 +- arch/powerpc/include/asm/kvm_host.h | 2 +- arch/s390/kvm/kvm-s390.c

[PATCH 0/6 v3] KVM: x86: Fill in conforming {vmx|svm}_x86_ops and {vmx|svm}_nested_ops via macros

2020-07-27 Thread Krish Sadhukhan
t.h| 2 +- include/uapi/linux/kvm.h| 6 +- tools/include/uapi/linux/kvm.h | 6 +- virt/kvm/kvm_main.c | 4 +- 19 files changed, 298 insertions(+), 290 deletions(-) Krish Sadhukhan (5): KVM: x86: Change names of some of the kvm_x86_

[PATCH 5/6 v3] KVM: nVMX: Fill in conforming vmx_nested_ops via macro

2020-07-27 Thread Krish Sadhukhan
-by: Paolo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Krish Sadhukhan --- arch/x86/kvm/vmx/nested.c | 24 +--- arch/x86/kvm/vmx/nested.h | 2 +- arch/x86/kvm/vmx/vmx.c| 4 ++-- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/arch/x