[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v12 04/10] hvf: Add Apple Silicon support
From: |
Alexander Graf |
Subject: |
Re: [PATCH v12 04/10] hvf: Add Apple Silicon support |
Date: |
Tue, 21 Sep 2021 19:05:09 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
On 21.09.21 17:30, Peter Maydell wrote:
> On Thu, 16 Sept 2021 at 16:54, Alexander Graf <agraf@csgraf.de> wrote:
>> With Apple Silicon available to the masses, it's a good time to add support
>> for driving its virtualization extensions from QEMU.
>>
>> This patch adds all necessary architecture specific code to get basic VMs
>> working, including save/restore.
>>
>> Known limitations:
>>
>> - WFI handling is missing (follows in later patch)
>> - No watchpoint/breakpoint support
>>
>> Signed-off-by: Alexander Graf <agraf@csgraf.de>
>> Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
>> Reviewed-by: Sergio Lopez <slp@redhat.com>
>> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> This broke compilation on x86 osx:
>
>> --- a/target/i386/hvf/hvf.c
>> +++ b/target/i386/hvf/hvf.c
>> @@ -206,6 +206,11 @@ static inline bool apic_bus_freq_is_known(CPUX86State
>> *env)
>> return env->apic_bus_freq != 0;
>> }
>>
>> +void hvf_kick_vcpu_thread(CPUState *cpu)
>> +{
>> + cpus_kick_thread(cpu);
>> +}
> This won't build without an extra #include "sysemu/cpus.h".
> I've folded in the fix.
Thanks a lot! I test compiled all the earlier versions of the patch set
on x86 as well, but no longer have easy access to an x86 macOS system
:(. They're just so insanely slow in comparison!
Alex
- [PATCH v12 00/10] hvf: Implement Apple Silicon Support, Alexander Graf, 2021/09/16
- [PATCH v12 02/10] hvf: Add execute to dirty log permission bitmap, Alexander Graf, 2021/09/16
- [PATCH v12 08/10] arm: Add Hypervisor.framework build target, Alexander Graf, 2021/09/16
- [PATCH v12 03/10] hvf: Introduce hvf_arch_init() callback, Alexander Graf, 2021/09/16
- [PATCH v12 01/10] arm: Move PMC register definitions to internals.h, Alexander Graf, 2021/09/16
- [PATCH v12 04/10] hvf: Add Apple Silicon support, Alexander Graf, 2021/09/16
- [PATCH v12 05/10] arm/hvf: Add a WFI handler, Alexander Graf, 2021/09/16
- [PATCH v12 07/10] hvf: arm: Implement PSCI handling, Alexander Graf, 2021/09/16
- [PATCH v12 10/10] arm: tcg: Adhere to SMCCC 1.3 section 5.2, Alexander Graf, 2021/09/16
- [PATCH v12 06/10] hvf: arm: Implement -cpu host, Alexander Graf, 2021/09/16
- [PATCH v12 09/10] hvf: arm: Add rudimentary PMC support, Alexander Graf, 2021/09/16
- Re: [PATCH v12 00/10] hvf: Implement Apple Silicon Support, Peter Maydell, 2021/09/20