[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c |
Date: |
Thu, 13 Feb 2025 15:54:42 +0100 |
On Thu, Feb 13, 2025 at 11:14:03AM +0100, Alexander Graf wrote:
>
> > I don't think so. The firmware driver knows this actually is normal ram
> > and can setup mappings and memory attributes accordingly. The situation
> > is a bit different from vga memory bars which are handled by pci bus
> > management which doesn't know anything about virtualization specifics.
> >
> > Well, unless macos thinks it knows everything better and goes setup
> > uncached mappings ...
>
> It's not only macOS. After SetVirtualAddressMap, the OS owns the virtual
> address space of Runtime Services. So in theory it also owns cacheability
> attributes of all mappings.
Hmm. Played around with the device memory approach a bit today. Looks
workable for both arm/sysbus and x86/isa. Problem is, if that does
leave any unsolved corner cases on the table it doesn't buy us much, and
the arm caching issues start to make me a bit nervous ...
So, maybe allowing pio data transfers is the better approach after all.
How do your patches pick the transfer mode? Is that dictated by the
host? Or is the guest free to choose? In case of the latter: How does
the guest decide what to do?
> Yes, IIRC we advertise where the hole is. I'm sure we can find a spot.
> Somewhere next to the HPET :).
0xfef1000 seems to be free, which is kida fun b/c of the 'ef1' in the
address.
take care,
Gerd
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, (continued)
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Gerd Hoffmann, 2025/02/12
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Alexander Graf, 2025/02/12
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Gerd Hoffmann, 2025/02/12
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Alexander Graf, 2025/02/12
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Gerd Hoffmann, 2025/02/12
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Alexander Graf, 2025/02/12
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Ard Biesheuvel, 2025/02/13
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Alexander Graf, 2025/02/13
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Gerd Hoffmann, 2025/02/13
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Alexander Graf, 2025/02/13
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c,
Gerd Hoffmann <=
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Alexander Graf, 2025/02/13
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Gerd Hoffmann, 2025/02/14
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Alexander Graf, 2025/02/14
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Gerd Hoffmann, 2025/02/14
- Re: [PATCH v3 09/23] hw/uefi: add var-service-core.c, Alexander Graf, 2025/02/14
[PATCH v3 06/23] hw/uefi: add var-service-vars.c, Gerd Hoffmann, 2025/02/11
[PATCH v3 10/23] hw/uefi: add var-service-pkcs7.c, Gerd Hoffmann, 2025/02/11
[PATCH v3 11/23] hw/uefi: add var-service-pkcs7-stub.c, Gerd Hoffmann, 2025/02/11
[PATCH v3 08/23] hw/uefi: add var-service-policy.c, Gerd Hoffmann, 2025/02/11
[PATCH v3 13/23] hw/uefi: add var-service-json.c + qapi for NV vars., Gerd Hoffmann, 2025/02/11