[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] Call SetVirtualAddressMap() by default
On 23.02.2023 14:08, Marek Marczykowski-Górecki wrote: > On Thu, Feb 23, 2023 at 11:16:28AM +0100, Jan Beulich wrote: >> On 22.02.2023 20:14, Demi Marie Obenour wrote: >>> To quote Andrew Cooper: >>> >>>> I know we've had this argument before, but not calling >>>> SetVirtualAddressMap() isn't a viable option. It's a prerequisite to >>>> function on literally millions of devices >>> >>> Qubes OS has been shipping EFI_SET_VIRTUAL_ADDRESS_MAP for years, and I >>> believe OpenXT and EVE ship it as well. Mark EFI_SET_VIRTUAL_ADDRESS_MAP >>> as SUPPORTED and enable it by default. >> >> This is insufficient justification. The main reason why we don't call >> it is because it can be called only once. Any entity taking over later >> (e.g. via kexec) can't do anything anymore about the virtual address >> associations once set. Hence what's needed to justify a change like >> this is an explanation of why this restriction is not really an issue >> to anyone in any case. > > AFAIR from the discussion about the original patch, kexec under Xen does > not preserve runtime services working anyway, so this limitation is more > about some possible kexec implementation in the future, not actually > breaking something right now. And since Linux calls > SetVirtualAddressMap() _and_ supports kexec just fine, it's definitely > possible to design this future kexec extension to work after > SetVirtualAddressMap() too. > > Relevant parts of that older discussion: > - > https://lore.kernel.org/all/272a9354-bcb4-50a4-a251-6a453221d6e3@xxxxxxxxxx/T/#u > - https://lore.kernel.org/all/20191009235725.GT8065@mail-itl/T/#u Well, there are various statements there without further reference. I'm having a hard time seeing how a full-fledged Linux could do well without runtime services, or without being able to set the virtual address map to its liking. If they can, then a question would be why they need to set the virtual address map in the first place (yes, there is this supposed "firmware bugs" argument, which unfortunately I lack any proof of; at the very least I'm unaware of bug reports against Xen boiling down to us not making this call). Plus maybe they can merely because old and new OS are similar enough in their (virtual) memory layout? IOW kexec-ing to Linux for crash dumping purposes is just one (important) example of the functionality that needs retaining. Once we get better PVH Dom0 support, maybe other Dom0 OSes surface with entirely different needs. As said back then - part of the reason why in the original implementation I've avoided making this call is because of the fear of closing possible roads we may need to take in the future. Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |