diff options
author | Sean Christopherson <[email protected]> | 2024-01-31 15:56:07 -0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-02-06 11:09:34 -0800 |
commit | 466eec4a22a76c462781bf6d45cb02cbedf21a61 (patch) | |
tree | abccea443ea20f8c0d76ee2ce954e6ad594ee68d /lib | |
parent | cc4ce37bed85989daf8f38bf19ea591f3b36fb0c (diff) |
KVM: SVM: Use unsigned integers when dealing with ASIDs
Convert all local ASID variables and parameters throughout the SEV code
from signed integers to unsigned integers. As ASIDs are fundamentally
unsigned values, and the global min/max variables are appropriately
unsigned integers, too.
Functionally, this is a glorified nop as KVM guarantees min_sev_asid is
non-zero, and no CPU supports -1u as the _only_ asid, i.e. the signed vs.
unsigned goof won't cause problems in practice.
Opportunistically use sev_get_asid() in sev_flush_encrypted_page() instead
of open coding an equivalent.
Reviewed-by: Tom Lendacky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions