Skip to contentSkip to conversation

x86/hvm: allow XENMEM_machine_memory_map

PATCH In review Roger Pau Monne 3 participants 5 messages May 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/hvm: allow XENMEM_machine_memory_map

For HVM based control domains XENMEM_machine_memory_map must be available so that the e820_host xl.cfg option can be used.

---
 xen/arch/x86/hvm/hypercall.c | 1 -
 1 file changed, 1 deletion(-)
xen/arch/x86/hvm/hypercall.c +0 -1
index 14679dd82971..7fb3136f0c7c 100644
@@ -25,7 +25,6 @@ long hvm_memory_op(unsigned long cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
 
     switch ( cmd & MEMOP_CMD_MASK )
     {
-    case XENMEM_machine_memory_map:
     case XENMEM_machphys_mapping:
         return -ENOSYS;
     }
Signature · 1 line
2.44.0
#1 lore raw
Quoted 4 lines · Roger Pau Monne

For HVM based control domains XENMEM_machine_memory_map must be available so that the e820_host xl.cfg option can be used.

Seems safe enough to allow.

Does this want a reported-by, or some further discussion about how it was found?

Also, as it's mostly PVH Dom0 bugfixing, shouldn't we want it in 4.19?

~Andrew

#2 lore raw
Quoted 10 lines · Andrew Cooper
Quoted 4 lines · Roger Pau Monne

For HVM based control domains XENMEM_machine_memory_map must be available so that the e820_host xl.cfg option can be used.

Seems safe enough to allow.

Does this want a reported-by, or some further discussion about how it was found?

I've found it while attempting to repro an issue with e820_host reported by Marek, but the issue he reported is not related to this. It's just that I have most of my test systems set as PVH dom0.

Quoted 1 line

Also, as it's mostly PVH Dom0 bugfixing, shouldn't we want it in 4.19?

Yeah, forgot to add the for-4.19 line and Oleksii, adding him now for consideration for 4.19.

Thanks, Roger.

Acked-by
#3 lore raw
Quoted 10 lines · Roger Pau Monné
Quoted 9 lines · Andrew Cooper
Quoted 4 lines · Roger Pau Monne

For HVM based control domains XENMEM_machine_memory_map must be available so that the e820_host xl.cfg option can be used.

Seems safe enough to allow.

Does this want a reported-by, or some further discussion about how it was found?

Quoted 7 lines

I've found it while attempting to repro an issue with e820_host reported by Marek, but the issue he reported is not related to this. It's just that I have most of my test systems set as PVH dom0.

Quoted 1 line

Also, as it's mostly PVH Dom0 bugfixing, shouldn't we want it in 4.19?

Yeah, forgot to add the for-4.19 line and Oleksii, adding him now for consideration for 4.19.

#4 lore raw
In reply to Roger Pau Monné
Quoted 18 lines · Roger Pau Monné
Quoted 5 lines · Andrew Cooper
Quoted 4 lines · Roger Pau Monne

For HVM based control domains XENMEM_machine_memory_map must be available so
that the e820_host xl.cfg option can be used.

Quoted 7 lines
Quoted 1 line

Seems safe enough to allow.

Does this want a reported-by, or some further discussion about how it
was found?

I've found it while attempting to repro an issue with e820_host reported by Marek, but the issue he reported is not related to this. It's just that I have most of my test systems set as PVH dom0.

Quoted 5 lines
Quoted 2 lines

Also, as it's mostly PVH Dom0 bugfixing, shouldn't we want it in 4.19?

Yeah, forgot to add the for-4.19 line and Oleksii, adding him now for consideration for 4.19.

~ Oleksii