qemu-discuss
[Top][All Lists]
Advanced

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

Re: arm64 disable some feature bit of ID_AA64ISAR0_EL1


From: Peter Maydell
Subject: Re: arm64 disable some feature bit of ID_AA64ISAR0_EL1
Date: Wed, 17 May 2023 14:13:30 +0100

On Wed, 17 May 2023 at 14:06, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> On Wed, 17 May 2023 at 03:23, Jiatong Shen <yshxxsjt715@gmail.com> wrote:
> >
> > Hello community Experts!
> >
> >     I am doing some experiments with arm64 host machine. The host machine 
> > is kunpeng 920 5251k. I try to boot a virtual machine with the following 
> > command:
> >
> > qemu-system-aarch64 -cpu cortex-a53 -enable-kvm -smp 1 -m 4096 -M 
> > virt,gic-version=3
> >
> > Here I have modified the code, and change kvm_target from 
> > QEMU_KVM_ARM_TARGET_CORTEX_A53 to 5(generic arm  v8).
>
> This is part of what is confusing you: this is not a correct change.
>
> > when the vm boots, I try to use lscpu, but I still saw some feature flags 
> > like atomics exist.
>
> In a KVM VM you will always see in the guest the exact same
> CPU type as the host. There is no support in the kernel for
> showing the guest a different CPU type to what the hardware has.

For clarity, I mean this specifically for the Arm architecture;
x86 is different and will let you expose a different CPU type
to the guest.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]