[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v3 07/38] xen-platform: allow its creation with XEN_EMULA
From: |
David Woodhouse |
Subject: |
Re: [RFC PATCH v3 07/38] xen-platform: allow its creation with XEN_EMULATE mode |
Date: |
Tue, 20 Dec 2022 16:29:36 +0000 |
User-agent: |
K-9 Mail for Android |
On 20 December 2022 16:19:54 GMT, Paul Durrant <xadimgnik@gmail.com> wrote:
>On 16/12/2022 00:40, David Woodhouse wrote:
>> From: Joao Martins <joao.m.martins@oracle.com>
>>
>> The only thing we need to handle on KVM side is to change the
>> pfn from R/W to R/O.
>>
>> Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
>> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
>> ---
>> hw/i386/xen/xen_platform.c | 11 ++++-------
>> 1 file changed, 4 insertions(+), 7 deletions(-)
>>
>> diff --git a/hw/i386/xen/xen_platform.c b/hw/i386/xen/xen_platform.c
>> index a6f0fb478a..15d5ae7c69 100644
>> --- a/hw/i386/xen/xen_platform.c
>> +++ b/hw/i386/xen/xen_platform.c
>> @@ -283,7 +283,10 @@ static void platform_fixed_ioport_writeb(void *opaque,
>> uint32_t addr, uint32_t v
>> case 0: /* Platform flags */ {
>> hvmmem_type_t mem_type = (val & PFFLAG_ROM_LOCK) ?
>> HVMMEM_ram_ro : HVMMEM_ram_rw;
>> - if (xen_set_mem_type(xen_domid, mem_type, 0xc0, 0x40)) {
>> + if (xen_mode == XEN_EMULATE) {
>> + /* XXX */
>
>???
Needs to mess with the q35/i440gx pam_update() I think.
- [RFC PATCH v3 20/38] i386/xen: handle VCPUOP_register_runstate_memory_area, (continued)
- [RFC PATCH v3 20/38] i386/xen: handle VCPUOP_register_runstate_memory_area, David Woodhouse, 2022/12/15
- [RFC PATCH v3 13/38] i386/xen: manage and save/restore Xen guest long_mode setting, David Woodhouse, 2022/12/15
- [RFC PATCH v3 05/38] i386/kvm: handle Xen HVM cpuid leaves, David Woodhouse, 2022/12/15
- [RFC PATCH v3 01/38] include: import xen public headers, David Woodhouse, 2022/12/15
- [RFC PATCH v3 18/38] i386/xen: handle VCPUOP_register_vcpu_info, David Woodhouse, 2022/12/15
- [RFC PATCH v3 10/38] i386/xen: implement HYPERCALL_xen_version, David Woodhouse, 2022/12/15
- [RFC PATCH v3 07/38] xen-platform: allow its creation with XEN_EMULATE mode, David Woodhouse, 2022/12/15
- [RFC PATCH v3 34/38] hw/xen: Implement EVTCHNOP_reset, David Woodhouse, 2022/12/15