diff options
author | Yan Zhao <yan.y.zhao@intel.com> | 2024-10-14 07:59:31 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-10-30 22:28:37 +0300 |
commit | bc17fccb37c8c100e3390e429e952330fd7cab1e (patch) | |
tree | 6c2d935fa12c1e27c823a938a5814d231453a9e2 /rust/helpers/helpers.c | |
parent | 5cb1659f412041e4780f2e8ee49b2e03728a2ba6 (diff) | |
download | linux-bc17fccb37c8c100e3390e429e952330fd7cab1e.tar.xz |
KVM: VMX: Remove the unused variable "gpa" in __invept()
Remove the unused variable "gpa" in __invept().
The INVEPT instruction only supports two types: VMX_EPT_EXTENT_CONTEXT (1)
and VMX_EPT_EXTENT_GLOBAL (2). Neither of these types requires a third
variable "gpa".
The "gpa" variable for __invept() is always set to 0 and was originally
introduced for the old non-existent type VMX_EPT_EXTENT_INDIVIDUAL_ADDR
(0). This type was removed by commit 2b3c5cbc0d81 ("kvm: don't use bit24
for detecting address-specific invalidation capability") and
commit 63f3ac48133a ("KVM: VMX: clean up declaration of VPID/EPT
invalidation types").
Since this variable is not useful for error handling either, remove it to
avoid confusion.
No functional changes expected.
Cc: Yuan Yao <yuan.yao@intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Link: https://lore.kernel.org/r/20241014045931.1061-1-yan.y.zhao@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions