KVM: X86: Reduce size of kvm_vcpu_arch structure when CONFIG_KVM_XEN=n
authorPeng Hao <flyingpeng@tencent.com>
Tue, 5 Sep 2023 01:07:09 +0000 (09:07 +0800)
committerSean Christopherson <seanjc@google.com>
Wed, 4 Oct 2023 19:26:02 +0000 (12:26 -0700)
commitee11ab6bb04e1093d3cc5f5bea9779799ce1d2c7
treef8567139b2e46433e4af33b58d3dc52093404e40
parent5804c19b80bf625c6a9925317f845e497434d6d3
KVM: X86: Reduce size of kvm_vcpu_arch structure when CONFIG_KVM_XEN=n

When CONFIG_KVM_XEN=n, the size of kvm_vcpu_arch can be reduced
from 5100+ to 4400+ by adding macro control.

Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Link: https://lore.kernel.org/all/CAPm50aKwbZGeXPK5uig18Br8CF1hOS71CE2j_dLX+ub7oJdpGg@mail.gmail.com
[sean: fix whitespace damage]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/cpuid.c
arch/x86/kvm/x86.c