[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Issue with shared information page on Xen/ARM 4.17
On Wed, 4 Oct 2023, Julien Grall wrote: > > > This is not very different here. For Arm we decided to not follow a > > > behavior > > > that I consider incorrect and potentially more harmful than trying to > > > support bootloader not removing the shared page. > > > > I think this is not very friendly to users, specially if edk2 wasn't > > checked. > > This was forgotten because it is not yet common to use EDK2 on Xen on Arm (the > proof is it took one year to find the obvious bug). I agree this is not user > friendly, but it is impossible to check all the single projects. I will > usually only look at the one that I know are used on Arm and/or someone remind > me on the ML. At AMD/Xilinx we don't have EDK2 on any ARM board. Unless I go out of my way to test it on purpose I wouldn't see it. > > I understand the situation is different on Arm vs x86, so if > > edk2 is not supported on arm I guess it doesn't matter much whether > > it's broken. It would be a much worse issue on x86 where edk2 is > > supported. > > AFAIK, we have CI for x86 on EDK2 but we don't on Arm. I think we should have a gitlab-ci job testing EDK2 on ARM using QEMU and I would certainly welcome it if someone contributed it. > > > If we want to handle such firmware, I think it would be better if we > > > provide > > > an hypercall that would return the GFN where it is currently mapped. > > > > Sure, but such hypercall would be racy, as by the time the gfn is > > returned the value could be stale. Adding a replacing and non > > replacing XENMEM_add_to_physmap variations would IMO be better. > > > > Anyway, I don't maintain this, so it's up to you. > > Bertrand/Stefano, any opinions? I think we should fix EDK2 to unmap the shared info in all cases as that's simpler and the best implementation. What's the value of keeping the mapping around when the OS can't find it? Unless you have an idea on how the OS could find the location of the existing EDK2 shared info mapping. It is important not to have 2 different behaviors for the same hypercall on ARM and x86, especially when the hypercall looks arch-neutral and an operating system would reasonably expect to use it in common code. Having different behaviors on ARM/x86 is more error prone than having a less-than-ideal hypercall implementation. I agree with Julien that the ARM behavior is the right behavior. Can we change the x86 implementation to match ARM somehow? If we do, I guess we would end up breaking legacy EDK2? Is really the only choice to change the ARM implementation to match the x86 implementation?
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |