Re: [PATCH] cpu_x86: Properly disable unknown CPU features

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux