aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXiaoyao Li <[email protected]>2020-07-08 14:50:47 +0800
committerPaolo Bonzini <[email protected]>2020-07-08 16:22:00 -0400
commit18964092825aef6faaadf51fbc5fd166168ddf61 (patch)
tree8b0118b1786e00c40ce05a0cb3a48e11d2a984c9 /tools/perf/scripts/python
parent2e8cd7a3b82874e9cb3e42d916dda05cd790cc1a (diff)
KVM: X86: Reset vcpu->arch.cpuid_nent to 0 if SET_CPUID* fails
Current implementation keeps userspace input of CPUID configuration and cpuid->nent even if kvm_update_cpuid() fails. Reset vcpu->arch.cpuid_nent to 0 for the case of failure as a simple fix. Besides, update the doc to explicitly state that if IOCTL SET_CPUID* fail KVM gives no gurantee that previous valid CPUID configuration is kept. Signed-off-by: Xiaoyao Li <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions