]> Gentwo Git Trees - linux/.git/commit
KVM: x86: Rename kvm_{g,s}et_msr()* to show that they emulate guest accesses
authorYang Weijiang <weijiang.yang@intel.com>
Tue, 12 Aug 2025 02:55:09 +0000 (19:55 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:48 +0000 (11:59 -0700)
commitd2dcf25a4cf2d9058a866c2237884287209b8d19
treecfc0093b792b390842acd26982d1081e0aab8c91
parentd90ebf5a06ecc6d4d7f72d12c5029519af8f838d
KVM: x86: Rename kvm_{g,s}et_msr()* to show that they emulate guest accesses

Rename
kvm_{g,s}et_msr_with_filter()
kvm_{g,s}et_msr()
to
kvm_emulate_msr_{read,write}
__kvm_emulate_msr_{read,write}

to make it more obvious that KVM uses these helpers to emulate guest
behaviors, i.e., host_initiated == false in these helpers.

Suggested-by: Sean Christopherson <seanjc@google.com>
Suggested-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Chao Gao <chao.gao@intel.com>
Tested-by: Mathias Krause <minipli@grsecurity.net>
Tested-by: John Allen <john.allen@amd.com>
Signed-off-by: Chao Gao <chao.gao@intel.com>
Tested-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Link: https://lore.kernel.org/r/20250812025606.74625-2-chao.gao@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/smm.c
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/x86.c