On Mon, Aug 11, 2025 at 12:49 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote: > > On Thu, Aug 07, 2025, Sagi Shahar wrote: > > From: Ackerley Tng <ackerleytng@xxxxxxxxxx> > > > > One-to-one GVA to GPA mappings can be used in the guest to set up boot > > sequences during which paging is enabled, hence requiring a transition > > from using physical to virtual addresses in consecutive instructions. > > NAK, this is an extremely convoluted way for establishing mappings for hardcoded > boot ranges. Just use virt_map(). And if clobbering an existing mapping is a > concern, we should add an assert in virt_map() to verify the address is available. I'm able to replace this with virt_map() as you suggested. I'll drop this patch in the next version.