commit | 54d360d41211006437bebf97513394693bd32623 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Thu Jul 04 12:18:13 2019 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Jul 05 13:48:43 2019 +0200 |
tree | 5f34b56e90e2ae0c1c9de14b21231a46c315c107 | |
parent | ab8bcf64971180e1344ce2c7e70c49b0f24f6b0d [diff] |
KVM: cpuid: extract do_cpuid_7_mask and support multiple subleafs CPUID function 7 has multiple subleafs. Instead of having nested switch statements, move the logic to filter supported features to a separate function, and call it for each subleaf. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>