diff options
| author | Sean Christopherson <[email protected]> | 2024-02-23 20:21:04 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-02-27 20:29:46 +0000 |
| commit | 259720c37d51aae21f70060ef96e1f1b08df0652 (patch) | |
| tree | dae7ca6b748febbda000b3cd9dcbb4d6b70be0df /drivers/misc/ibmasm/command.c | |
| parent | KVM: VMX: return early if msr_bitmap is not supported (diff) | |
| download | kernel-259720c37d51aae21f70060ef96e1f1b08df0652.tar.gz kernel-259720c37d51aae21f70060ef96e1f1b08df0652.zip | |
KVM: VMX: Combine "check" and "get" APIs for passthrough MSR lookups
Combine possible_passthrough_msr_slot() and is_valid_passthrough_msr()
into a single function, vmx_get_passthrough_msr_slot(), and have the
combined helper return the slot on success, using a negative value to
indicate "failure".
Combining the operations avoids iterating over the array of passthrough
MSRs twice for relevant MSRs.
Suggested-by: Dongli Zhang <[email protected]>
Reviewed-by: Dongli Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/command.c')
0 files changed, 0 insertions, 0 deletions
