diff options
author | Oliver Upton <[email protected]> | 2020-10-27 16:10:42 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2020-11-08 04:41:29 -0500 |
commit | 01b4f510b9f467abfc781e198e810e1ecffb782e (patch) | |
tree | 2e0ca3e840a0a8f9b3dc2a52fb1a91256d2412c7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 1930e5ddcead2c23567131e62c86b15efce054be (diff) |
kvm: x86: ensure pv_cpuid.features is initialized when enabling cap
Make the paravirtual cpuid enforcement mechanism idempotent to ioctl()
ordering by updating pv_cpuid.features whenever userspace requests the
capability. Extract this update out of kvm_update_cpuid_runtime() into a
new helper function and move its other call site into
kvm_vcpu_after_set_cpuid() where it more likely belongs.
Fixes: 66570e966dd9 ("kvm: x86: only provide PV features if enabled in guest's CPUID")
Signed-off-by: Oliver Upton <[email protected]>
Reviewed-by: Peter Shier <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions