Re: [RFC PATCH v5 28/52] i386/xen: Add support for Xen event channel delivery to vCPU

2023-01-09 Thread David Woodhouse
On Fri, 2022-12-30 at 12:12 +, David Woodhouse wrote: > > +static void *gpa_to_hva(uint64_t gpa) > +{ > +    MemoryRegionSection mrs; > + > +    mrs = memory_region_find(get_system_memory(), gpa, 1); > +    return !mrs.mr ? NULL : qemu_map_ram_ptr(mrs.mr->ram_block, > +

[RFC PATCH v5 28/52] i386/xen: Add support for Xen event channel delivery to vCPU

2022-12-30 Thread David Woodhouse
From: David Woodhouse The kvm_xen_inject_vcpu_callback_vector() function will either deliver the per-vCPU local APIC vector (as an MSI), or just kick the vCPU out of the kernel to trigger KVM's automatic delivery of the global vector. Support for asserting the GSI/PCI_INTX callbacks will come lat