[PATCH 33/35] kvm, x86: temporary disable record_steal_time for dmem

From: yulei . kernel
Date: Thu Oct 08 2020 - 03:56:30 EST


From: Yulei Zhang <yuleixzhang@xxxxxxxxxxx>

Temporarily disable record_steal_time when entering
the guest for dmem.

Signed-off-by: Yulei Zhang <yuleixzhang@xxxxxxxxxxx>
---
arch/x86/kvm/x86.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 1994602a0851..409b5a68aa60 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2789,6 +2789,7 @@ static void kvm_vcpu_flush_tlb_guest(struct kvm_vcpu *vcpu)

static void record_steal_time(struct kvm_vcpu *vcpu)
{
+#if 0
struct kvm_host_map map;
struct kvm_steal_time *st;

@@ -2830,6 +2831,7 @@ static void record_steal_time(struct kvm_vcpu *vcpu)
st->version += 1;

kvm_unmap_gfn(vcpu, &map, &vcpu->arch.st.cache, true, false);
+#endif
}

int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
--
2.28.0