diff options
| author | Leonardo Bras <[email protected]> | 2022-02-17 05:30:30 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-02-17 15:06:49 +0000 |
| commit | 988896bb61827345c6d074dd5f2af1b7b008193f (patch) | |
| tree | 5737b7835942397ee9b1a095498600191025ee18 /tools/perf/scripts/python/netdev-times.py | |
| parent | x86/kvm/fpu: Limit guest user_xfeatures to supported bits of XCR0 (diff) | |
| download | kernel-988896bb61827345c6d074dd5f2af1b7b008193f.tar.gz kernel-988896bb61827345c6d074dd5f2af1b7b008193f.zip | |
x86/kvm/fpu: Remove kvm_vcpu_arch.guest_supported_xcr0
kvm_vcpu_arch currently contains the guest supported features in both
guest_supported_xcr0 and guest_fpu.fpstate->user_xfeatures field.
Currently both fields are set to the same value in
kvm_vcpu_after_set_cpuid() and are not changed anywhere else after that.
Since it's not good to keep duplicated data, remove guest_supported_xcr0.
To keep the code more readable, introduce kvm_guest_supported_xcr()
and kvm_guest_supported_xfd() to replace the previous usages of
guest_supported_xcr0.
Signed-off-by: Leonardo Bras <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
