On Wed, May 19, 2021 at 10:22:49PM +0200, Alexander Graf wrote: > Now that we have working system register sync, we push more target CPU > properties into the virtual machine. That might be useful in some > situations, but is not the typical case that users want. > > So let's add a -cpu host option that allows them to explicitly pass all > CPU capabilities of their host CPU into the guest. > > Signed-off-by: Alexander Graf > Acked-by: Roman Bolshakov > > --- > > v6 -> v7: > > - Move function define to own header > - Do not propagate SVE features for HVF > - Remove stray whitespace change > - Verify that EL0 and EL1 do not allow AArch32 mode > - Only probe host CPU features once > --- > target/arm/cpu.c | 9 ++++-- > target/arm/cpu.h | 2 ++ > target/arm/hvf/hvf.c | 72 ++++++++++++++++++++++++++++++++++++++++++++ > target/arm/hvf_arm.h | 19 ++++++++++++ > target/arm/kvm_arm.h | 2 -- > 5 files changed, 100 insertions(+), 4 deletions(-) > create mode 100644 target/arm/hvf_arm.h Reviewed-by: Sergio Lopez Tested-by: Sergio Lopez