Skip to content

target-i386: make "enforce" flag work as it should

Eduardo Habkost kvm qemu-devel 1 version NAK

Status from this message: Nacked-by: QEMU Patches <[email protected]>

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 4 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/9target-i386: kvm: -cpu host: Use GET_SUPPORTED_CPUID for SVM featurestarget-i386/cpu.c+4 -70 replies
2/9target-i386: kvm: Enable all supported KVM features for -cpu hosttarget-i386/cpu.c+2 -00 replies
3/9target-i386: check/enforce: Fix CPUID leaf numbers on error messagestarget-i386/cpu.c target-i386/cpu.h+32 -91 reply
4/9target-i386: check/enforce: Do not ignore "hypervisor" flagtarget-i386/cpu.c+1 -10 replies
5/9target-i386: check/enforce: Check all CPUID.80000001H.EDX bitstarget-i386/cpu.c+1 -10 replies
6/9target-i386: check/enforce: Check SVM flag support as welltarget-i386/cpu.c+1 -10 replies
7/9target-i386: check/enforce: Eliminate check_feat fieldtarget-i386/cpu.c+6 -80 replies
8/9target-i386: Call kvm_check_features_against_host() only if CONFIG_KVM is settarget-i386/cpu.c+4 -00 replies
9/9target-i386: check/enforce: Check all feature wordstarget-i386/cpu.c+13 -30 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by.

PatchQEMU Patches
SeriesNacked-by
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] target-i386: make "enforce" flag work as it should

This changes the -cpu check/enforce code to work as it should: it will check every single CPUID bit to make sure it is supported by the host.

The changes are a bit intrusive, but:

- The longer we take to make "enforce" strict as it should (and make libvirt finally use it), more users will have VMs with migration-unsafe unpredictable guest ABIs. For this reason, I would like to get this into QEMU 1.4.
- The changes in this series should affect only users that are already using the "enforce" flag, and I believe whoever is using the "enforce" flag really want the strict behavior introduced by this series.

This series is based on Andreas' qom-cpu branch, and depends on the series:
Subject: [PATCH 0/2] Disable kvm_mmu_op by default on pc-1.4
Message-Id: <[email protected]>

Git tree for reference:
git://github.com/ehabkost/qemu-hacks.git cpu-enforce-all.v1
https://github.com/ehabkost/qemu-hacks/tree/cpu-enforce-all.v1

Eduardo Habkost (9):
target-i386: kvm: -cpu host: Use GET_SUPPORTED_CPUID for SVM features
target-i386: kvm: Enable all supported KVM features for -cpu host
target-i386: check/enforce: Fix CPUID leaf numbers on error messages
target-i386: check/enforce: Do not ignore "hypervisor" flag
target-i386: check/enforce: Check all CPUID.80000001H.EDX bits
target-i386: check/enforce: Check SVM flag support as well
target-i386: check/enforce: Eliminate check_feat field
target-i386: Call kvm_check_features_against_host() only if
CONFIG_KVM is set
target-i386: check/enforce: Check all feature words

 target-i386/cpu.c | 73 +++++++++++++++++++++++++++++++++++++++----------------
 target-i386/cpu.h |  3 +++
 2 files changed, 55 insertions(+), 21 deletions(-)
Signature · 1 line
1.7.11.7