[libvirt] [PATCH] cpu_x86: Properly disable unknown CPU features
Peter Krempa
pkrempa at redhat.com
Thu Jul 13 07:24:20 UTC 2017
On Mon, Jun 19, 2017 at 15:09:04 +0200, Jiri Denemark wrote:
> CPU features unknown to a hypervisor will not be present in dataDisabled
> even though the feature won't naturally be enabled because it is
> unknown. Thus any features we asked for which are not in dataEnabled
> should be considered disabled.
>
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
> src/cpu/cpu_x86.c | 9 +-
> tests/cputest.c | 1 +
> .../x86_64-cpuid-Core-i7-5600U-arat-disabled.xml | 5 +
> .../x86_64-cpuid-Core-i7-5600U-arat-enabled.xml | 8 +
> .../x86_64-cpuid-Core-i7-5600U-arat-guest.xml | 29 +++
> .../x86_64-cpuid-Core-i7-5600U-arat-host.xml | 30 +++
> .../x86_64-cpuid-Core-i7-5600U-arat-json.xml | 14 ++
> .../x86_64-cpuid-Core-i7-5600U-arat.json | 202 +++++++++++++++++++++
> .../x86_64-cpuid-Core-i7-5600U-arat.xml | 41 +++++
> 9 files changed, 335 insertions(+), 4 deletions(-)
> create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-disabled.xml
> create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-enabled.xml
> create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-guest.xml
> create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-host.xml
> create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-json.xml
> create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat.json
> create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat.xml
ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170713/7396361b/attachment-0001.sig>
More information about the libvir-list
mailing list