Re: [PATCH] hvf: arm: Allow creating VMs with > 63GB of RAM on macOS 15+

2024-09-05 Thread Danny Canter
Forgot to leave a trail here :). V2 is posted https://lists.gnu.org/archive/html/qemu-devel/2024-08/msg04016.html Thanks again for review Peter! > On Aug 13, 2024, at 2:31 AM, Peter Maydell wrote: > > On Mon, 12 Aug 2024 at 23:18, Danny Canter wrote: >> On Aug 12, 2024, at

[PATCH v2 0/3] hvf: arm: Support creating VMs with 64+GB of RAM on macOS 15+

2024-08-28 Thread Danny Canter
- Move the splitting up of hv_vm_create logic per platform to a separate patch. This is mostly for readability. Danny Canter (3): hw/boards: Add hvf_get_physical_address_range to MachineClass hvf: Split up hv_vm_create logic per arch hvf: arm: Allow creating VMs with 64+GB of RAM on macOS 15+

[PATCH v2 2/3] hvf: Split up hv_vm_create logic per arch

2024-08-28 Thread Danny Canter
have no behavioral difference at all as hv_vm_config_create() just assigns the same default values as if you just passed NULL to the function. Signed-off-by: Danny Canter --- accel/hvf/hvf-accel-ops.c | 6 +- include/sysemu/hvf_int.h | 1 + target/arm/hvf/hvf.c | 9 + target/i386/h

[PATCH v2 3/3] hvf: arm: Implement and use hvf_get_physical_address_range

2024-08-28 Thread Danny Canter
set our IPA size to the maximum as well as clamp down the PARange we advertise to the guest. This allows VMs with 64+ GB of RAM and should fix the oddness of the PARange situation as well. Signed-off-by: Danny Canter --- accel/hvf/hvf-accel-ops.c | 12 - hw/arm/virt.c | 31 +++

[PATCH v2 1/3] hw/boards: Add hvf_get_physical_address_range to MachineClass

2024-08-28 Thread Danny Canter
much less generic than kvm_type today, but it seemed a somewhat sane way to get the information we need from the memmap at VM creation time. Signed-off-by: Danny Canter --- hw/arm/virt.c | 9 - hw/i386/x86.c | 2 ++ include/hw/boards.h | 5 + 3 files changed, 15 insertions(

Re: [PATCH] hvf: arm: Allow creating VMs with > 63GB of RAM on macOS 15+

2024-08-16 Thread Danny Canter
ine); > On Aug 13, 2024, at 2:31 AM, Peter Maydell wrote: > > On Mon, 12 Aug 2024 at 23:18, Danny Canter wrote: >> On Aug 12, 2024, at 10:52 AM, Peter Maydell wrote: >>> This is unfortunately probably going to imply a bit of extra >>> plumbing to be implemented f

Re: [PATCH] hvf: arm: Allow creating VMs with > 63GB of RAM on macOS 15+

2024-08-12 Thread Danny Canter
Peter, thanks for review! Will work on splitting this up a bit to support the plumbing you mentioned KVM does today on ARM. > On Aug 12, 2024, at 10:52 AM, Peter Maydell wrote: > > On Fri, 19 Jul 2024 at 00:03, Danny Canter wrote: >> >> This patch's main focus is t

Re: [PATCH] hvf: arm: Allow creating VMs with > 63GB of RAM on macOS 15+

2024-07-30 Thread Danny Canter
slipped my mind when thinking about what actually needs to be ifdef’d here. That certainly cleans things up a bit for some of the functions in this patch. — Danny > On Jul 29, 2024, at 9:27 AM, Peter Maydell wrote: > > On Fri, 19 Jul 2024 at 00:03, Danny Canter wrote: >>

[PATCH] hvf: arm: Allow creating VMs with > 63GB of RAM on macOS 15+

2024-07-18 Thread Danny Canter
ARange situation as well. For the implementation of this I've decided to only bump the IPA size if the amount of RAM requested is encroaching on the default IPA size of 36 bits, as at 40 bits of IPA space we have to have one extra level of stage2 page tables. Signed-off-by: Danny Canter Re