[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 00/34] target/arm: Implement ARMv8.1-VHE
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v3 00/34] target/arm: Implement ARMv8.1-VHE |
Date: |
Mon, 5 Aug 2019 07:00:25 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 8/5/19 6:02 AM, Alex Bennée wrote:
>
> Richard Henderson <address@hidden> writes:
>
>> About half of this patch set is cleanup of the qemu tlb handling
>> leading up to the actual implementation of VHE, and the biggest
>> piece of that: The EL2&0 translation regime.
>>
>> Changes since v2:
>> * arm_mmu_idx was incomplete; test TGE+E2H not just E2H.
>> * arm_sctlr was incomplete; now uses arm_mmu_idx to avoid
>> duplication of tests.
>> * Update aa64_zva_access and ctr_el0_access for EL2.
>>
>> Changes since v1:
>> * Merge feedback from AJB.
>> * Split out 7 renaming patches from "Reorganize ARMMMUIdx".
>> * Alex's MIDR patch keeps the nested KVM from spitting warnings.
>>
>> I have tested
>>
>> qemu-system-aarch64 -accel kvm -cpu host -M virt,gic-version-host \
>> -m 512 -bios /usr/share/edk2/aarch64/QEMU_EFI.fd -nographic
>
> So testing with a host doing:
>
> ./aarch64-softmmu/qemu-system-aarch64 -machine type=virt,virtualization=on
> -cpu cortex-a57 -serial mon:stdio -nic
> user,model=virtio-net-pci,hostfwd=tcp::2222-:22 -device virtio-scsi-pci
> -drive
> file=/dev/zvol/hackpool-0/debian-buster-arm64,id=hd0,index=0,if=none,format=raw,discard=on
> -device scsi-hd,drive=hd0 -kernel
> ../linux.git/builds/arm64/arch/arm64/boot/Image -append "console=ttyAMA0
> root=/dev/sda2" -display none -m 4096 -smp 8
>
> And a guest doing:
>
> ./aarch64-softmmu/qemu-system-aarch64 -machine type=virt -cpu host
> -serial mon:stdio -nic user,model=virtio-net-pci -device
> virtio-scsi-pci -kernel /boot/vmlinuz-4.19.0-5-arm64 -append
> "console=ttyAMA0 panic=-1" -display none -m 256 -smp 4 --no-reboot
> --enable-kvm
>
> I triggered:
>
>
> ERROR:/home/alex.bennee/lsrc/qemu.git/target/arm/helper.c:3436:update_lpae_el1_asid:
> code should not be reached
> fish: “./aarch64-softmmu/qemu-system-a…” terminated by signal SIGABRT (Abort)
Whoops. Rebase error while changing the signature of this function.
Thanks for re-testing the case where VHE isn't present. :-P
> With -cpu max on the host it hangs the whole thing. I'm going to
> continue to experiment with explicit GIC versions.
Hangs the host? Are you sure that the guest isn't just slow?
That's why I changed my testing to boot a debug edk2, which
outputs stuff much sooner than the kernel does.
Although I have no idea why the guest should be extra slow.
It does seem like it ought to be booting at the same speed as
the host. I see tlb flushes as quite high in the profile,
and wonder if I'm doing too many of them.
r~
- [Qemu-devel] [PATCH v3 25/34] target/arm: Update aa64_zva_access for EL2, (continued)
- [Qemu-devel] [PATCH v3 25/34] target/arm: Update aa64_zva_access for EL2, Richard Henderson, 2019/08/03
- [Qemu-devel] [PATCH v3 26/34] target/arm: Update ctr_el0_access for EL2, Richard Henderson, 2019/08/03
- [Qemu-devel] [PATCH v3 28/34] target/arm: Flush tlbs for E2&0 translation regime, Richard Henderson, 2019/08/03
- [Qemu-devel] [PATCH v3 30/34] target/arm: Update regime_is_user for EL2&0, Richard Henderson, 2019/08/03
- [Qemu-devel] [PATCH v3 32/34] target/arm: Enable ARMv8.1-VHE in -cpu max, Richard Henderson, 2019/08/03
- [Qemu-devel] [PATCH v3 34/34] target/arm: generate a custom MIDR for -cpu max, Richard Henderson, 2019/08/03
- [Qemu-devel] [PATCH v3 31/34] target/arm: Update {fp, sve}_exception_el for VHE, Richard Henderson, 2019/08/03
- [Qemu-devel] [PATCH v3 29/34] target/arm: Update arm_phys_excp_target_el for TGE, Richard Henderson, 2019/08/03
- [Qemu-devel] [PATCH v3 33/34] target/arm: check TGE and E2H flags for EL0 pauth traps, Richard Henderson, 2019/08/03
- Re: [Qemu-devel] [PATCH v3 00/34] target/arm: Implement ARMv8.1-VHE, Alex Bennée, 2019/08/05
- Re: [Qemu-devel] [PATCH v3 00/34] target/arm: Implement ARMv8.1-VHE,
Richard Henderson <=