Re: [QEMU PATCH v9] xen/passthrough: use gsi to map pirq when dom0 is PVH

2024-11-03 Thread Chen, Jiqian
On 2024/11/1 21:09, Stewart Hildebrand wrote: > On 10/24/24 05:06, Jiqian Chen wrote: >> diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c >> index 3635d1b39f79..5b10d501d566 100644 >> --- a/hw/xen/xen_pt.c >> +++ b/hw/xen/xen_pt.c >> @@ -766,6 +766,50 @@ static void xen_pt_destroy(PCIDevice *d) { >>

Re: [QEMU PATCH v9] xen/passthrough: use gsi to map pirq when dom0 is PVH

2024-10-31 Thread Chen, Jiqian
Hi, On 2024/10/24 17:06, Jiqian Chen wrote: > In PVH dom0, when passthrough a device to domU, QEMU code > xen_pt_realize->xc_physdev_map_pirq wants to use gsi, but in current codes > the gsi number is got from file /sys/bus/pci/devices//irq, that is > wrong, because irq is not equal with gsi, they

Re: [QEMU PATCH v8] xen/passthrough: use gsi to map pirq when dom0 is PVH

2024-10-23 Thread Chen, Jiqian
On 2024/10/23 07:07, Marek Marczykowski-Górecki wrote: > On Wed, Oct 16, 2024 at 02:28:27PM +0800, Jiqian Chen wrote: >> --- a/hw/xen/xen_pt.h >> +++ b/hw/xen/xen_pt.h >> @@ -36,6 +36,7 @@ void xen_pt_log(const PCIDevice *d, const char *f, ...) >> G_GNUC_PRINTF(2, 3); >> # define XEN_PT_LOG_CONF

Re: [QEMU PATCH v8] xen/passthrough: use gsi to map pirq when dom0 is PVH

2024-10-23 Thread Chen, Jiqian
On 2024/10/22 04:55, Stewart Hildebrand wrote: > On 10/16/24 02:28, Jiqian Chen wrote: >> In PVH dom0, when passthrough a device to domU, QEMU code >> xen_pt_realize->xc_physdev_map_pirq wants to use gsi, but in current codes >> the gsi number is got from file /sys/bus/pci/devices//irq, that is >>

Re: [RFC QEMU PATCH v7 1/1] xen/pci: get gsi for passthrough devices

2024-10-14 Thread Chen, Jiqian
On 2024/10/15 03:34, Stewart Hildebrand wrote: > +Edgar > > On 5/16/24 06:13, Jiqian Chen wrote: >> In PVH dom0, it uses the linux local interrupt mechanism, >> when it allocs irq for a gsi, it is dynamic, and follow >> the principle of applying first, distributing first. And >> the irq number is

Re: [PATCH v3] xen: Remove dependency between pciback and privcmd

2024-10-11 Thread Chen, Jiqian
On 2024/10/12 13:48, Jürgen Groß wrote: > On 12.10.24 04:36, Chen, Jiqian wrote: >> On 2024/10/12 10:22, Chen, Jiqian wrote: >>> On 2024/10/11 20:06, Juergen Gross wrote: >>>> On 11.10.24 05:42, Jiqian Chen wrote: >>>>> Commit 2fae6bb7be32 (&quo

Re: [PATCH v3] xen: Remove dependency between pciback and privcmd

2024-10-11 Thread Chen, Jiqian
On 2024/10/12 10:22, Chen, Jiqian wrote: > On 2024/10/11 20:06, Juergen Gross wrote: >> On 11.10.24 05:42, Jiqian Chen wrote: >>> Commit 2fae6bb7be32 ("xen/privcmd: Add new syscall to get gsi from dev") >>> adds a weak reverse dependency to the config XEN_PR

Re: [PATCH v3] xen: Remove dependency between pciback and privcmd

2024-10-11 Thread Chen, Jiqian
On 2024/10/11 20:06, Juergen Gross wrote: > On 11.10.24 05:42, Jiqian Chen wrote: >> Commit 2fae6bb7be32 ("xen/privcmd: Add new syscall to get gsi from dev") >> adds a weak reverse dependency to the config XEN_PRIVCMD definition, that >> dependency causes xen-privcmd can't be loaded on domU, becaus

Re: [PATCH v3] xen: Remove dependency between pciback and privcmd

2024-10-11 Thread Chen, Jiqian
On 2024/10/11 17:20, Chen, Jiqian wrote: > On 2024/10/11 16:54, Jan Beulich wrote: >> On 11.10.2024 05:42, Jiqian Chen wrote: >>> @@ -1757,11 +1756,19 @@ static int __init xen_pcibk_init(void) >>> bus_register_notifier(&pci_bus_type, &pci_stub

Re: [PATCH v3] xen: Remove dependency between pciback and privcmd

2024-10-11 Thread Chen, Jiqian
On 2024/10/11 16:54, Jan Beulich wrote: > On 11.10.2024 05:42, Jiqian Chen wrote: >> @@ -1757,11 +1756,19 @@ static int __init xen_pcibk_init(void) >> bus_register_notifier(&pci_bus_type, &pci_stub_nb); >> #endif >> >> +#ifdef CONFIG_XEN_ACPI >> +xen_acpi_register_get_gsi_func(p

Re: [PATCH v2] xen: Remove dependency between pciback and privcmd

2024-10-10 Thread Chen, Jiqian
On 2024/10/10 16:39, Jürgen Groß wrote: > On 10.10.24 09:58, Jiqian Chen wrote: >> Commit 2fae6bb7be32 ("xen/privcmd: Add new syscall to get gsi from dev") >> adds a weak reverse dependency to the config XEN_PRIVCMD definition, that >> dependency causes xen-privcmd can't be loaded on domU, because

Re: [PATCH v2] xen: Remove dependency between pciback and privcmd

2024-10-10 Thread Chen, Jiqian
On 2024/10/10 16:17, Jan Beulich wrote: > On 10.10.2024 09:58, Jiqian Chen wrote: >> --- a/drivers/xen/acpi.c >> +++ b/drivers/xen/acpi.c >> @@ -125,3 +125,20 @@ int xen_acpi_get_gsi_info(struct pci_dev *dev, >> return 0; >> } >> EXPORT_SYMBOL_GPL(xen_acpi_get_gsi_info); >> + >> +get_gsi_fro

Re: [PATCH] xen: Remove config dependency in XEN_PRIVCMD definition

2024-10-10 Thread Chen, Jiqian
On 2024/10/10 13:39, Jürgen Groß wrote: > On 10.10.24 00:46, Stefano Stabellini wrote: >> On Wed, 9 Oct 2024, Jan Beulich wrote: >>> On 09.10.2024 08:20, Jiqian Chen wrote: Commit 2fae6bb7be32 ("xen/privcmd: Add new syscall to get gsi from dev") adds a weak reverse dependency to the confi

Re: Linux 6.12-rc2: xen-privcmd cannot be loaded in domU anymore

2024-10-08 Thread Chen, Jiqian
On 2024/10/9 08:36, Marek Marczykowski-Górecki wrote: > Hi, > > It looks like xen-privcmd now depends on xen-pciback, and the latter > (expectedly) fails to load in domU with -ENODEV. But that prevents > loading xen-privcmd too. And that's bad. Sorry for introducing that and thank you for reportin

Re: [KERNEL PATCH v9 3/3] xen/privcmd: Add new syscall to get gsi from dev

2024-09-23 Thread Chen, Jiqian
On 2024/9/23 16:04, Juergen Gross wrote: > On 23.09.24 09:58, Juergen Gross wrote: >> On 23.09.24 07:49, Chen, Jiqian wrote: >>> On 2024/9/21 05:17, Stefano Stabellini wrote: >>>> On Fri, 20 Sep 2024, Chen, Jiqian wrote: >>>>> On 2024/9/19 06:49, St

Re: [KERNEL PATCH v9 3/3] xen/privcmd: Add new syscall to get gsi from dev

2024-09-22 Thread Chen, Jiqian
On 2024/9/21 05:17, Stefano Stabellini wrote: > On Fri, 20 Sep 2024, Chen, Jiqian wrote: >> On 2024/9/19 06:49, Stefano Stabellini wrote: >>> On Thu, 12 Sep 2024, Jiqian Chen wrote: >>>> On PVH dom0, when passthrough a device to domU, QEMU and xl tools >>

Re: [KERNEL PATCH v9 3/3] xen/privcmd: Add new syscall to get gsi from dev

2024-09-20 Thread Chen, Jiqian
On 2024/9/19 06:49, Stefano Stabellini wrote: > On Thu, 12 Sep 2024, Jiqian Chen wrote: >> On PVH dom0, when passthrough a device to domU, QEMU and xl tools >> want to use gsi number to do pirq mapping, see QEMU code >> xen_pt_realize->xc_physdev_map_pirq, and xl code >> pci_add_dm_done->xc_physdev

Re: [XEN PATCH v15 2/4] x86/irq: allow setting IRQ permissions from GSI instead of pIRQ

2024-09-12 Thread Chen, Jiqian
On 2024/9/13 14:52, Jan Beulich wrote: > On 13.09.2024 04:38, Chen, Jiqian wrote: >> On 2024/9/12 18:51, Jan Beulich wrote: >>> On 12.09.2024 12:34, Daniel P. Smith wrote: >>>> On 9/11/24 02:58, Jiqian Chen wrote: >>>>> @@ -237,6 +238,34

Re: [XEN PATCH v15 2/4] x86/irq: allow setting IRQ permissions from GSI instead of pIRQ

2024-09-12 Thread Chen, Jiqian
On 2024/9/12 18:51, Jan Beulich wrote: > On 12.09.2024 12:34, Daniel P. Smith wrote: >> On 9/11/24 02:58, Jiqian Chen wrote: >>> @@ -237,6 +238,34 @@ long arch_do_domctl( >>> break; >>> } >>> >>> +case XEN_DOMCTL_gsi_permission: >>> +{ >>> +int irq; >>> +u

Re: [XEN PATCH v15 2/4] x86/irq: allow setting IRQ permissions from GSI instead of pIRQ

2024-09-12 Thread Chen, Jiqian
Hi Daniel, On 2024/9/11 14:58, Chen, Jiqian wrote: > Some domains are not aware of the pIRQ abstraction layer that maps > interrupt sources into Xen space interrupt numbers. pIRQs values are > only exposed to domains that have the option to route physical > interrupts over ev

Re: [RFC XEN PATCH v15 3/4] tools: Add new function to get gsi from dev

2024-09-11 Thread Chen, Jiqian
es, so pirq mapping fails. >>> >>> And in current codes, there is no method to get gsi for userspace. >>> For above purpose, add new function to get gsi, and the >>> corresponding ioctl is implemented on linux kernel side. >>> >>> Signed-off-by: J

Re: [XEN PATCH v14 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-09-09 Thread Chen, Jiqian
gt;> On Thu, 5 Sep 2024, Jan Beulich wrote: >>>>>> On 05.09.2024 08:45, Chen, Jiqian wrote: >>>>>>> HI, >>>>>>> >>>>>>> On 2024/9/4 14:04, Jan Beulich wrote: >>>>>>>> On 04.09.2024 03:43, Stefan

Re: [XEN PATCH v14 3/5] x86/domctl: Add hypercall to set the access of x86 gsi

2024-09-09 Thread Chen, Jiqian
On 2024/9/9 17:15, Roger Pau Monné wrote: > On Tue, Sep 03, 2024 at 03:04:22PM +0800, Jiqian Chen wrote: >> Some type of domains don't have PIRQs, like PVH, it doesn't do >> PHYSDEVOP_map_pirq for each gsi. When passthrough a device >> to guest base on PVH dom0, callstack >> pci_add_dm_done->XEN_DO

Re: [XEN PATCH v14 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-09-04 Thread Chen, Jiqian
HI, On 2024/9/4 14:04, Jan Beulich wrote: > On 04.09.2024 03:43, Stefano Stabellini wrote: >> On Tue, 3 Sep 2024, Jan Beulich wrote: >>> On 03.09.2024 12:53, Chen, Jiqian wrote: >>>> On 2024/9/3 17:25, Jan Beulich wrote: >>>>> On 03.09.2024 09:58, Chen

Re: [RFC XEN PATCH v14 5/5] tools: Add new function to do PIRQ (un)map on PVH dom0

2024-09-04 Thread Chen, Jiqian
ll >> XEN_DOMCTL_gsi_permission to grant the permission of irq( >> translate from gsi) to dumU when dom0 has no PIRQs. >> >> Signed-off-by: Jiqian Chen >> Signed-off-by: Huang Rui >> Signed-off-by: Chen Jiqian >> --- >> diff --git a/tools/libs/ctrl/xc

Re: [XEN PATCH v14 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-09-03 Thread Chen, Jiqian
On 2024/9/3 17:25, Jan Beulich wrote: > On 03.09.2024 09:58, Chen, Jiqian wrote: >> On 2024/9/3 15:42, Jan Beulich wrote: >>> On 03.09.2024 09:04, Jiqian Chen wrote: >>>> When dom0 is PVH type and passthrough a device to HVM domU, Qemu code >>>> xen_pt_r

Re: [XEN PATCH v14 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-09-03 Thread Chen, Jiqian
On 2024/9/3 15:42, Jan Beulich wrote: > On 03.09.2024 09:04, Jiqian Chen wrote: >> When dom0 is PVH type and passthrough a device to HVM domU, Qemu code >> xen_pt_realize->xc_physdev_map_pirq and libxl code pci_add_dm_done-> >> xc_physdev_map_pirq map a pirq for passthrough devices. >> In xc_physde

Re: [XEN PATCH v13 2/6] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-09-02 Thread Chen, Jiqian
On 2024/9/3 14:09, Jan Beulich wrote: > On 03.09.2024 06:01, Chen, Jiqian wrote: >> On 2024/8/20 15:07, Jan Beulich wrote: >>> On 20.08.2024 08:12, Chen, Jiqian wrote: >>>> On 2024/8/19 17:08, Jan Beulich wrote: >>>>> On 16.08.2024 13:08, Jiqian Chen w

Re: [XEN PATCH v13 2/6] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-09-02 Thread Chen, Jiqian
On 2024/8/20 15:07, Jan Beulich wrote: > On 20.08.2024 08:12, Chen, Jiqian wrote: >> On 2024/8/19 17:08, Jan Beulich wrote: >>> On 16.08.2024 13:08, Jiqian Chen wrote: >>>> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >>>> a pass

Re: [XEN PATCH v13 3/6] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-08-25 Thread Chen, Jiqian
On 2024/8/21 08:16, Stefano Stabellini wrote: > On Tue, 20 Aug 2024, Chen, Jiqian wrote: >> On 2024/8/19 17:16, Jan Beulich wrote: >>> On 16.08.2024 13:08, Jiqian Chen wrote: >>>> The gsi of a passthrough device must be configured for it to be >>>> able t

Re: [XEN PATCH v13 1/6] xen/pci: Add hypercall to support reset of pcidev

2024-08-25 Thread Chen, Jiqian
On 2024/8/21 05:42, Stewart Hildebrand wrote: > On 8/20/24 03:01, Jan Beulich wrote: >> On 20.08.2024 08:00, Chen, Jiqian wrote: >>> On 2024/8/19 17:04, Jan Beulich wrote: >>>> On 16.08.2024 13:08, Jiqian Chen wrote: >>>>> @@

Re: [XEN PATCH v13 3/6] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-08-19 Thread Chen, Jiqian
On 2024/8/19 17:16, Jan Beulich wrote: > On 16.08.2024 13:08, Jiqian Chen wrote: >> The gsi of a passthrough device must be configured for it to be >> able to be mapped into a hvm domU. >> But When dom0 is PVH, the gsis may not get registered(see below >> clarification), it causes the info of apic,

Re: [XEN PATCH v13 2/6] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-08-19 Thread Chen, Jiqian
On 2024/8/19 17:08, Jan Beulich wrote: > On 16.08.2024 13:08, Jiqian Chen wrote: >> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >> a passthrough device by using gsi, see qemu code >> xen_pt_realize->xc_physdev_map_pirq and libxl code >> pci_add_dm_done->xc_physdev_map_pirq. Then

Re: [XEN PATCH v13 1/6] xen/pci: Add hypercall to support reset of pcidev

2024-08-19 Thread Chen, Jiqian
On 2024/8/19 17:04, Jan Beulich wrote: > On 16.08.2024 13:08, Jiqian Chen wrote: >> @@ -67,6 +68,57 @@ ret_t pci_physdev_op(int cmd, >> XEN_GUEST_HANDLE_PARAM(void) arg) >> break; >> } >> >> +case PHYSDEVOP_pci_device_reset: >> +{ >> +struct pci_device_reset dev_res

Re: [XEN PATCH v12 2/7] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-08-02 Thread Chen, Jiqian
Hi Jan, On 2024/8/2 16:35, Roger Pau Monné wrote: > On Fri, Aug 02, 2024 at 08:17:15AM +0000, Chen, Jiqian wrote: >> On 2024/8/2 16:11, Roger Pau Monné wrote: >>> I think this patch needs to be adjusted to drop the change to >>> xen/arch/x86/physdev.c, as just allow

Re: [XEN PATCH v12 2/7] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-08-02 Thread Chen, Jiqian
On 2024/8/2 16:11, Roger Pau Monné wrote: > On Fri, Aug 02, 2024 at 02:37:24AM +0000, Chen, Jiqian wrote: >> On 2024/7/31 21:03, Roger Pau Monné wrote: >>> On Wed, Jul 31, 2024 at 01:39:40PM +0200, Jan Beulich wrote: >>>> On 31.07.2024 13:29, Roger Pau Monné wrote: &g

Re: [XEN PATCH v12 4/7] x86/domctl: Add hypercall to set the access of x86 gsi

2024-08-02 Thread Chen, Jiqian
On 2024/8/2 16:08, Roger Pau Monné wrote: > On Mon, Jul 08, 2024 at 07:41:21PM +0800, Jiqian Chen wrote: >> Some type of domains don't have PIRQs, like PVH, it doesn't do >> PHYSDEVOP_map_pirq for each gsi. When passthrough a device >> to guest base on PVH dom0, callstack >> pci_add_dm_done->XEN_DO

Re: [XEN PATCH v12 4/7] x86/domctl: Add hypercall to set the access of x86 gsi

2024-08-02 Thread Chen, Jiqian
On 2024/8/2 14:27, Jan Beulich wrote: > On 02.08.2024 05:10, Chen, Jiqian wrote: >> On 2024/8/1 19:06, Roger Pau Monné wrote: >>> On Mon, Jul 08, 2024 at 07:41:21PM +0800, Jiqian Chen wrote: >>>> --- a/xen/include/public/domctl.h >>>> +++ b/xen/incl

Re: [XEN PATCH v12 1/7] xen/pci: Add hypercall to support reset of pcidev

2024-08-02 Thread Chen, Jiqian
On 2024/8/2 14:25, Jan Beulich wrote: > On 02.08.2024 04:55, Chen, Jiqian wrote: >> On 2024/7/31 23:55, Roger Pau Monné wrote: >>> On Mon, Jul 08, 2024 at 07:41:18PM +0800, Jiqian Chen wrote: >>>> When a device has been reset on dom0 side, the Xen hypervisor >>

Re: [RFC XEN PATCH v12 6/7] tools: Add new function to get gsi from dev

2024-08-01 Thread Chen, Jiqian
o get gsi for userspace. >> For above purpose, add new function to get gsi, and the >> corresponding ioctl is implemented on linux kernel side. >> >> Signed-off-by: Jiqian Chen >> Signed-off-by: Huang Rui >> Signed-off-by: Chen Jiqian >> --- &

Re: [XEN PATCH v12 4/7] x86/domctl: Add hypercall to set the access of x86 gsi

2024-08-01 Thread Chen, Jiqian
On 2024/8/1 19:06, Roger Pau Monné wrote: > On Mon, Jul 08, 2024 at 07:41:21PM +0800, Jiqian Chen wrote: >> Some type of domains don't have PIRQs, like PVH, it doesn't do >> PHYSDEVOP_map_pirq for each gsi. When passthrough a device >> to guest base on PVH dom0, callstack >> pci_add_dm_done->XEN_DO

Re: [XEN PATCH v12 1/7] xen/pci: Add hypercall to support reset of pcidev

2024-08-01 Thread Chen, Jiqian
On 2024/8/1 14:49, Jan Beulich wrote: > On 31.07.2024 18:13, Roger Pau Monné wrote: >> On Wed, Jul 31, 2024 at 05:58:54PM +0200, Jan Beulich wrote: >>> On 31.07.2024 17:55, Roger Pau Monné wrote: On Mon, Jul 08, 2024 at 07:41:18PM +0800, Jiqian Chen wrote: > --- a/xen/drivers/vpci/vpci.c >

Re: [XEN PATCH v12 1/7] xen/pci: Add hypercall to support reset of pcidev

2024-08-01 Thread Chen, Jiqian
On 2024/7/31 23:55, Roger Pau Monné wrote: > On Mon, Jul 08, 2024 at 07:41:18PM +0800, Jiqian Chen wrote: >> When a device has been reset on dom0 side, the Xen hypervisor >> doesn't get notification, so the cached state in vpci is all >> out of date compare with the real device state. >> >> To solv

Re: [XEN PATCH v12 2/7] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-08-01 Thread Chen, Jiqian
On 2024/7/31 21:03, Roger Pau Monné wrote: > On Wed, Jul 31, 2024 at 01:39:40PM +0200, Jan Beulich wrote: >> On 31.07.2024 13:29, Roger Pau Monné wrote: >>> On Wed, Jul 31, 2024 at 11:55:35AM +0200, Jan Beulich wrote: On 31.07.2024 11:37, Roger Pau Monné wrote: > On Wed, Jul 31, 2024 at 11

Re: [XEN PATCH v12 2/7] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-07-31 Thread Chen, Jiqian
On 2024/7/31 15:50, Roger Pau Monné wrote: > On Mon, Jul 08, 2024 at 07:41:19PM +0800, Jiqian Chen wrote: >> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >> a passthrough device by using gsi, see qemu code >> xen_pt_realize->xc_physdev_map_pirq and libxl code >> pci_add_dm_done->x

Re: [XEN PATCH v12 2/7] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-07-31 Thread Chen, Jiqian
On 2024/7/30 21:09, Andrew Cooper wrote: > On 08/07/2024 12:41 pm, Jiqian Chen wrote: >> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >> a passthrough device by using gsi, see qemu code >> xen_pt_realize->xc_physdev_map_pirq and libxl code >> pci_add_dm_done->xc_physdev_map_pirq.

Re: [XEN PATCH v12 2/7] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-07-30 Thread Chen, Jiqian
Hi Andrew, On 2024/7/30 21:09, Andrew Cooper wrote: > On 08/07/2024 12:41 pm, Jiqian Chen wrote: >> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >> a passthrough device by using gsi, see qemu code >> xen_pt_realize->xc_physdev_map_pirq and libxl code >> pci_add_dm_done->xc_physde

Re: [XEN PATCH v12 4/7] x86/domctl: Add hypercall to set the access of x86 gsi

2024-07-25 Thread Chen, Jiqian
Hi Daniel, On 2024/7/9 21:08, Jan Beulich wrote: > On 08.07.2024 13:41, Jiqian Chen wrote: >> Some type of domains don't have PIRQs, like PVH, it doesn't do >> PHYSDEVOP_map_pirq for each gsi. When passthrough a device >> to guest base on PVH dom0, callstack >> pci_add_dm_done->XEN_DOMCTL_irq_perm

Re: [XEN PATCH v12 4/7] x86/domctl: Add hypercall to set the access of x86 gsi

2024-07-25 Thread Chen, Jiqian
On 2024/7/23 06:10, Stefano Stabellini wrote: > On Mon, 8 Jul 2024, Jiqian Chen wrote: >> Some type of domains don't have PIRQs, like PVH, it doesn't do >> PHYSDEVOP_map_pirq for each gsi. When passthrough a device >> to guest base on PVH dom0, callstack >> pci_add_dm_done->XEN_DOMCTL_irq_permissio

Re: [XEN PATCH v12 3/7] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-07-11 Thread Chen, Jiqian
Hi all, On 2024/7/8 19:41, Jiqian Chen wrote: > The gsi of a passthrough device must be configured for it to be > able to be mapped into a hvm domU. > But When dom0 is PVH, the gsis may not get registered(see below > clarification), it causes the info of apic, pin and irq not be > added into irq_2

Re: [XEN PATCH v12 3/7] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-07-10 Thread Chen, Jiqian
Hi, On 2024/7/8 19:41, Jiqian Chen wrote: > The gsi of a passthrough device must be configured for it to be > able to be mapped into a hvm domU. > But When dom0 is PVH, the gsis may not get registered(see below > clarification), it causes the info of apic, pin and irq not be > added into irq_2_pin

Re: [XEN PATCH v12 5/7] tools/libxc: Allow gsi be mapped into a free pirq

2024-07-10 Thread Chen, Jiqian
On 2024/7/9 21:26, Jan Beulich wrote: > On 08.07.2024 13:41, Jiqian Chen wrote: >> Hypercall PHYSDEVOP_map_pirq support to map a gsi into a specific >> pirq or a free pirq, it depends on the parameter pirq(>0 or <0). >> But in current xc_physdev_map_pirq, it set *pirq=index when >> parameter pirq i

Re: [RFC XEN PATCH v12 7/7] tools: Add new function to do PIRQ (un)map on PVH dom0

2024-07-08 Thread Chen, Jiqian
On 2024/7/8 22:57, Anthony PERARD wrote: > On Mon, Jul 08, 2024 at 07:41:24PM +0800, Jiqian Chen wrote: >> diff --git a/tools/libs/light/libxl_arm.c b/tools/libs/light/libxl_arm.c >> index a4029e3ac810..d869bbec769e 100644 >> --- a/tools/libs/light/libxl_arm.c >> +++ b/tools/libs/light/libxl_arm.c

Re: [RFC XEN PATCH v12 6/7] tools: Add new function to get gsi from dev

2024-07-08 Thread Chen, Jiqian
On 2024/7/8 21:27, Anthony PERARD wrote: > On Mon, Jul 08, 2024 at 07:41:23PM +0800, Jiqian Chen wrote: >> diff --git a/tools/libs/ctrl/xc_physdev.c b/tools/libs/ctrl/xc_physdev.c >> index e9fcd755fa62..54edb0f3c0dc 100644 >> --- a/tools/libs/ctrl/xc_physdev.c >> +++ b/tools/libs/ctrl/xc_physdev.c

Re: [XEN PATCH v12 1/7] xen/pci: Add hypercall to support reset of pcidev

2024-07-08 Thread Chen, Jiqian
On 2024/7/8 22:56, Jan Beulich wrote: > On 08.07.2024 13:41, Jiqian Chen wrote: >> When a device has been reset on dom0 side, the Xen hypervisor >> doesn't get notification, so the cached state in vpci is all >> out of date compare with the real device state. >> >> To solve that problem, add a new

Re: [PATCH for-4.19 v2] x86/physdev: Return pirq that irq was already mapped to

2024-07-08 Thread Chen, Jiqian
On 2024/7/8 18:32, Andrew Cooper wrote: > On 08/07/2024 9:04 am, Jiqian Chen wrote: >> Fix bug introduced by 0762e2502f1f ("x86/physdev: factor out the code to >> allocate and >> map a pirq"). After that re-factoring, when pirq<0 and current_pirq>0, it >> means >> caller want to allocate a free p

Re: [XEN PATCH v11 5/8] x86/domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-07-07 Thread Chen, Jiqian
On 2024/7/4 21:33, Jan Beulich wrote: > On 30.06.2024 14:33, Jiqian Chen wrote: >> @@ -237,6 +238,38 @@ long arch_do_domctl( >> break; >> } >> >> +case XEN_DOMCTL_gsi_permission: >> +{ >> +int irq; >> +uint8_t mask = 1; >> +unsigned int gsi = domctl->

Re: [XEN PATCH v11 4/8] x86/physdev: Return pirq that irq was already mapped to

2024-07-07 Thread Chen, Jiqian
On 2024/7/4 20:47, Jan Beulich wrote: > On 30.06.2024 14:33, Jiqian Chen wrote: >> allocate_pirq is to allocate a pirq for a irq, and it supports to >> allocate a free pirq(pirq parameter is <0) or a specific pirq (pirq >> parameter is > 0). >> >> For current code, it has four usecases. >> >> First

Re: [XEN PATCH v11 2/8] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-07-03 Thread Chen, Jiqian
On 2024/7/4 14:38, Jan Beulich wrote: > On 04.07.2024 04:56, Chen, Jiqian wrote: >> On 2024/7/2 16:44, Jan Beulich wrote: >>> On 02.07.2024 05:15, Chen, Jiqian wrote: >>>> On 2024/7/1 15:44, Jan Beulich wrote: >>>>> On 30.06.2024 14:33, Jiqian Ch

Re: [RFC XEN PATCH v11 7/8] tools: Add new function to get gsi from dev

2024-07-03 Thread Chen, Jiqian
Hi Anthony, On 2024/7/2 11:47, Chen, Jiqian wrote: > On 2024/7/1 15:32, Jan Beulich wrote: >> On 30.06.2024 14:33, Jiqian Chen wrote: >>> --- a/tools/libs/ctrl/xc_physdev.c >>> +++ b/tools/libs/ctrl/xc_physdev.c >>> @@ -111,3 +111,38 @@ int xc_physdev_unmap_pir

Re: [XEN PATCH v11 2/8] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-07-03 Thread Chen, Jiqian
On 2024/7/2 16:44, Jan Beulich wrote: > On 02.07.2024 05:15, Chen, Jiqian wrote: >> On 2024/7/1 15:44, Jan Beulich wrote: >>> On 30.06.2024 14:33, Jiqian Chen wrote: >>>> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >>>> a pass

Re: [RFC XEN PATCH v11 7/8] tools: Add new function to get gsi from dev

2024-07-01 Thread Chen, Jiqian
On 2024/7/1 15:32, Jan Beulich wrote: > On 30.06.2024 14:33, Jiqian Chen wrote: >> --- a/tools/libs/ctrl/xc_physdev.c >> +++ b/tools/libs/ctrl/xc_physdev.c >> @@ -111,3 +111,38 @@ int xc_physdev_unmap_pirq(xc_interface *xch, >> return rc; >> } >> >> +int xc_physdev_gsi_from_pcidev(xc_interf

Re: [XEN PATCH v11 6/8] tools/libxc: Allow gsi be mapped into a free pirq

2024-07-01 Thread Chen, Jiqian
On 2024/7/1 15:54, Jan Beulich wrote: > On 30.06.2024 14:33, Jiqian Chen wrote: >> Hypercall PHYSDEVOP_map_pirq support to map a gsi into a specific >> pirq or a free pirq, it depends on the parameter pirq(>0 or <0). >> But in current xc_physdev_map_pirq, it set *pirq=index when >> parameter pirq i

Re: [XEN PATCH v11 3/8] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-07-01 Thread Chen, Jiqian
On 2024/7/1 15:52, Jan Beulich wrote: > On 30.06.2024 14:33, Jiqian Chen wrote: >> The gsi of a passthrough device must be configured for it to be >> able to be mapped into a hvm domU. >> But When dom0 is PVH, the gsis don't get registered, it causes > > As per below, it's not "don't" but "may not

Re: [XEN PATCH v11 2/8] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-07-01 Thread Chen, Jiqian
On 2024/7/1 15:44, Jan Beulich wrote: > On 30.06.2024 14:33, Jiqian Chen wrote: >> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >> a passthrough device by using gsi, see qemu code >> xen_pt_realize->xc_physdev_map_pirq and libxl code >> pci_add_dm_done->xc_physdev_map_pirq. Then x

Re: [XEN PATCH v11 1/8] xen/vpci: Clear all vpci status of device

2024-07-01 Thread Chen, Jiqian
On 2024/7/1 15:18, Jan Beulich wrote: > On 30.06.2024 14:33, Jiqian Chen wrote: >> When a device has been reset on dom0 side, the vpci on Xen >> side won't get notification, so the cached state in vpci is >> all out of date compare with the real device state. >> To solve that problem, add a new hyp

Re: [XEN PATCH v10 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-25 Thread Chen, Jiqian
On 2024/6/24 20:33, Anthony PERARD wrote: > On Fri, Jun 21, 2024 at 08:20:55AM +0000, Chen, Jiqian wrote: >> On 2024/6/20 18:42, Jan Beulich wrote: >>> On 20.06.2024 11:40, Chen, Jiqian wrote: >>>> On 2024/6/18 17:23, Jan Beulich wrote: >>>>> On 18.06.2

Re: [XEN PATCH v10 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-25 Thread Chen, Jiqian
On 2024/6/24 16:17, Jan Beulich wrote: > On 21.06.2024 10:20, Chen, Jiqian wrote: >> On 2024/6/20 18:42, Jan Beulich wrote: >>> On 20.06.2024 11:40, Chen, Jiqian wrote: >>>> On 2024/6/18 17:23, Jan Beulich wrote: >>>>> On 18.06.2024 10:23, Chen, Jiqian

Re: [XEN PATCH v10 4/5] tools: Add new function to get gsi from dev

2024-06-25 Thread Chen, Jiqian
On 2024/6/24 16:13, Jan Beulich wrote: > On 21.06.2024 10:15, Chen, Jiqian wrote: >> On 2024/6/20 18:37, Jan Beulich wrote: >>> On 20.06.2024 12:23, Chen, Jiqian wrote: >>>> On 2024/6/20 15:43, Jan Beulich wrote: >>>>> On 20.06.2024 09:03, Chen, Jiqian

Re: [XEN PATCH v10 4/5] tools: Add new function to get gsi from dev

2024-06-21 Thread Chen, Jiqian
On 2024/6/20 22:38, Anthony PERARD wrote: > On Mon, Jun 17, 2024 at 05:00:34PM +0800, Jiqian Chen wrote: >> diff --git a/tools/include/xencall.h b/tools/include/xencall.h >> index fc95ed0fe58e..750aab070323 100644 >> --- a/tools/include/xencall.h >> +++ b/tools/include/xencall.h >> @@ -113,6 +113,8

Re: [XEN PATCH v10 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-21 Thread Chen, Jiqian
On 2024/6/20 18:42, Jan Beulich wrote: > On 20.06.2024 11:40, Chen, Jiqian wrote: >> On 2024/6/18 17:23, Jan Beulich wrote: >>> On 18.06.2024 10:23, Chen, Jiqian wrote: >>>> On 2024/6/17 23:32, Jan Beulich wrote: >>>>> On 17.06.2024 11:00, Jiqian Chen

Re: [XEN PATCH v10 4/5] tools: Add new function to get gsi from dev

2024-06-21 Thread Chen, Jiqian
On 2024/6/20 18:37, Jan Beulich wrote: > On 20.06.2024 12:23, Chen, Jiqian wrote: >> On 2024/6/20 15:43, Jan Beulich wrote: >>> On 20.06.2024 09:03, Chen, Jiqian wrote: >>>> On 2024/6/18 17:13, Jan Beulich wrote: >>>>> On 18.06.2024 10:10, Chen, Jiqian

Re: [XEN PATCH v10 4/5] tools: Add new function to get gsi from dev

2024-06-20 Thread Chen, Jiqian
On 2024/6/20 15:43, Jan Beulich wrote: > On 20.06.2024 09:03, Chen, Jiqian wrote: >> On 2024/6/18 17:13, Jan Beulich wrote: >>> On 18.06.2024 10:10, Chen, Jiqian wrote: >>>> On 2024/6/17 23:10, Jan Beulich wrote: >>>>> On 17.06.2024 11:00, Jiq

Re: [XEN PATCH v10 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-20 Thread Chen, Jiqian
On 2024/6/18 17:23, Jan Beulich wrote: > On 18.06.2024 10:23, Chen, Jiqian wrote: >> On 2024/6/17 23:32, Jan Beulich wrote: >>> On 17.06.2024 11:00, Jiqian Chen wrote: >>>> @@ -1516,14 +1519,39 @@ static void pci_add_dm_done(libxl__egc *egc, >

Re: [XEN PATCH v10 4/5] tools: Add new function to get gsi from dev

2024-06-20 Thread Chen, Jiqian
On 2024/6/18 17:13, Jan Beulich wrote: > On 18.06.2024 10:10, Chen, Jiqian wrote: >> On 2024/6/17 23:10, Jan Beulich wrote: >>> On 17.06.2024 11:00, Jiqian Chen wrote: >>>> --- a/tools/include/xen-sys/Linux/privcmd.h >>>> +++ b/tools/include/xen-sys/Linux

Re: [XEN PATCH v10 3/5] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-06-19 Thread Chen, Jiqian
On 2024/6/19 17:49, Jan Beulich wrote: > On 19.06.2024 10:51, Chen, Jiqian wrote: >> On 2024/6/19 16:06, Jan Beulich wrote: >>> On 19.06.2024 09:53, Chen, Jiqian wrote: >>>> On 2024/6/18 16:55, Jan Beulich wrote: >>>>> On 18.06.2024 08:57, Chen, Jiqian

Re: [XEN PATCH v10 3/5] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-06-19 Thread Chen, Jiqian
On 2024/6/19 16:06, Jan Beulich wrote: > On 19.06.2024 09:53, Chen, Jiqian wrote: >> On 2024/6/18 16:55, Jan Beulich wrote: >>> On 18.06.2024 08:57, Chen, Jiqian wrote: >>>> On 2024/6/17 22:52, Jan Beulich wrote: >>>>> On 17.06.2024 11:00, Jiqian Chen

Re: [XEN PATCH v10 3/5] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-06-19 Thread Chen, Jiqian
On 2024/6/18 16:55, Jan Beulich wrote: > On 18.06.2024 08:57, Chen, Jiqian wrote: >> On 2024/6/17 22:52, Jan Beulich wrote: >>> On 17.06.2024 11:00, Jiqian Chen wrote: >>>> The gsi of a passthrough device must be configured for it to be >>>> able to be map

Re: [XEN PATCH v10 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-06-18 Thread Chen, Jiqian
On 2024/6/18 16:38, Jan Beulich wrote: > On 18.06.2024 08:49, Chen, Jiqian wrote: >> On 2024/6/17 22:45, Jan Beulich wrote: >>> On 17.06.2024 11:00, Jiqian Chen wrote: >>>> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >>>> a pass

Re: [XEN PATCH v10 1/5] xen/vpci: Clear all vpci status of device

2024-06-18 Thread Chen, Jiqian
On 2024/6/18 16:33, Jan Beulich wrote: > On 18.06.2024 08:25, Chen, Jiqian wrote: >> On 2024/6/17 22:17, Jan Beulich wrote: >>> On 17.06.2024 11:00, Jiqian Chen wrote: >>>> --- a/xen/drivers/pci/physdev.c >>>> +++ b/xen/drivers/pci/physdev.c >>>

Re: [XEN PATCH v10 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-18 Thread Chen, Jiqian
On 2024/6/17 23:32, Jan Beulich wrote: > On 17.06.2024 11:00, Jiqian Chen wrote: >> Some type of domain don't have PIRQs, like PVH, it doesn't do >> PHYSDEVOP_map_pirq for each gsi. When passthrough a device >> to guest base on PVH dom0, callstack >> pci_add_dm_done->XEN_DOMCTL_irq_permission will

Re: [XEN PATCH v10 4/5] tools: Add new function to get gsi from dev

2024-06-18 Thread Chen, Jiqian
On 2024/6/17 23:10, Jan Beulich wrote: > On 17.06.2024 11:00, Jiqian Chen wrote: >> In PVH dom0, it uses the linux local interrupt mechanism, >> when it allocs irq for a gsi, it is dynamic, and follow >> the principle of applying first, distributing first. And >> irq number is alloced from small to

Re: [XEN PATCH v10 3/5] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-06-17 Thread Chen, Jiqian
On 2024/6/17 22:52, Jan Beulich wrote: > On 17.06.2024 11:00, Jiqian Chen wrote: >> The gsi of a passthrough device must be configured for it to be >> able to be mapped into a hvm domU. >> But When dom0 is PVH, the gsis don't get registered, it causes >> the info of apic, pin and irq not be added i

Re: [XEN PATCH v10 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-06-17 Thread Chen, Jiqian
On 2024/6/17 22:45, Jan Beulich wrote: > On 17.06.2024 11:00, Jiqian Chen wrote: >> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >> a passthrough device by using gsi, see qemu code >> xen_pt_realize->xc_physdev_map_pirq and libxl code >> pci_add_dm_done->xc_physdev_map_pirq. Then

Re: [XEN PATCH v10 1/5] xen/vpci: Clear all vpci status of device

2024-06-17 Thread Chen, Jiqian
On 2024/6/17 22:17, Jan Beulich wrote: > On 17.06.2024 11:00, Jiqian Chen wrote: >> --- a/xen/drivers/pci/physdev.c >> +++ b/xen/drivers/pci/physdev.c >> @@ -2,11 +2,17 @@ >> #include >> #include >> #include >> +#include >> >> #ifndef COMPAT >> typedef long ret_t; >> #endif >> >> +sta

Re: [XEN PATCH v10 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-17 Thread Chen, Jiqian
Hi Daniel, On 2024/6/17 17:00, Jiqian Chen wrote: > Some type of domain don't have PIRQs, like PVH, it doesn't do > PHYSDEVOP_map_pirq for each gsi. When passthrough a device > to guest base on PVH dom0, callstack > pci_add_dm_done->XEN_DOMCTL_irq_permission will fail at function > domain_pirq_to_

Re: [RFC XEN PATCH v9 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-13 Thread Chen, Jiqian
On 2024/6/14 14:41, Jan Beulich wrote: > On 14.06.2024 05:11, Chen, Jiqian wrote: >> On 2024/6/13 20:51, Anthony PERARD wrote: >>> On Wed, Jun 12, 2024 at 10:55:14AM +, Chen, Jiqian wrote: >>>> On 2024/6/12 18:34, Jan Beulich wrote: >>>>> On 12.06.2

Re: [RFC XEN PATCH v9 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-13 Thread Chen, Jiqian
Hi Daniel, On 2024/6/11 22:39, Jan Beulich wrote: > On 07.06.2024 10:11, Jiqian Chen wrote: >> +case XEN_DOMCTL_gsi_permission: >> +{ >> +unsigned int gsi = domctl->u.gsi_permission.gsi; >> +int irq = gsi_2_irq(gsi); >> +bool allow = domctl->u.gsi_permission.allow

Re: [RFC XEN PATCH v9 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-13 Thread Chen, Jiqian
On 2024/6/13 20:51, Anthony PERARD wrote: > On Wed, Jun 12, 2024 at 10:55:14AM +0000, Chen, Jiqian wrote: >> On 2024/6/12 18:34, Jan Beulich wrote: >>> On 12.06.2024 12:12, Chen, Jiqian wrote: >>>> On 2024/6/11 22:39, Jan Beulich wrote: >>>>> On 07.06

Re: [RFC XEN PATCH v9 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-12 Thread Chen, Jiqian
On 2024/6/12 18:34, Jan Beulich wrote: > On 12.06.2024 12:12, Chen, Jiqian wrote: >> On 2024/6/11 22:39, Jan Beulich wrote: >>> On 07.06.2024 10:11, Jiqian Chen wrote: >>>> Some type of domain don't have PIRQ, like PVH, it do not do >>>> PHYSDEVOP_m

Re: [XEN PATCH v9 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-06-12 Thread Chen, Jiqian
On 2024/6/12 17:21, Jan Beulich wrote: > On 12.06.2024 11:07, Chen, Jiqian wrote: >> On 2024/6/12 16:53, Jan Beulich wrote: >>> On 12.06.2024 04:43, Chen, Jiqian wrote: >>>> On 2024/6/10 23:58, Jan Beulich wrote: >>>>> On 07.06.2024 10:11, Jiqian Chen w

Re: [XEN PATCH v9 3/5] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0

2024-06-12 Thread Chen, Jiqian
On 2024/6/11 00:04, Jan Beulich wrote: > On 07.06.2024 10:11, Jiqian Chen wrote: >> On PVH dom0, the gsis don't get registered, but >> the gsi of a passthrough device must be configured for it to >> be able to be mapped into a hvm domU. >> On Linux kernel side, it calles PHYSDEVOP_setup_gsi for >>

Re: [RFC XEN PATCH v9 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-12 Thread Chen, Jiqian
Hi Jan, On 2024/6/11 22:39, Jan Beulich wrote: > On 07.06.2024 10:11, Jiqian Chen wrote: >> Some type of domain don't have PIRQ, like PVH, it do not do >> PHYSDEVOP_map_pirq for each gsi. When passthrough a device >> to guest on PVH dom0, callstack >> pci_add_dm_done->XEN_DOMCTL_irq_permission wil

Re: [XEN PATCH v9 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-06-12 Thread Chen, Jiqian
On 2024/6/12 16:53, Jan Beulich wrote: > On 12.06.2024 04:43, Chen, Jiqian wrote: >> On 2024/6/10 23:58, Jan Beulich wrote: >>> On 07.06.2024 10:11, Jiqian Chen wrote: >>>> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >>>> a pass

Re: [XEN PATCH v9 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH

2024-06-11 Thread Chen, Jiqian
On 2024/6/10 23:58, Jan Beulich wrote: > On 07.06.2024 10:11, Jiqian Chen wrote: >> If run Xen with PVH dom0 and hvm domU, hvm will map a pirq for >> a passthrough device by using gsi, see qemu code >> xen_pt_realize->xc_physdev_map_pirq and libxl code >> pci_add_dm_done->xc_physdev_map_pirq. Then

Re: [XEN PATCH v9 0/5] Support device passthrough when dom0 is PVH on Xen

2024-06-11 Thread Chen, Jiqian
On 2024/6/11 00:07, Jan Beulich wrote: > On 07.06.2024 10:11, Jiqian Chen wrote: >> Hi All, >> This is v9 series to support passthrough when dom0 is PVH >> v8->v9 changes: >> * patch#1: Move pcidevs_unlock below write_lock, and remove >> "ASSERT(pcidevs_locked());" from vpci_reset_device_state; >>

Re: [RFC XEN PATCH v8 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-05 Thread Chen, Jiqian
On 2024/6/5 18:09, Jan Beulich wrote: > On 05.06.2024 09:04, Chen, Jiqian wrote: >> On 2024/6/5 01:17, Jan Beulich wrote: >>> On 04.06.2024 10:18, Chen, Jiqian wrote: >>>> I tried to get more debug information from my environment. And I attach >>>> t

Re: [RFC XEN PATCH v8 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-05 Thread Chen, Jiqian
On 2024/6/5 01:17, Jan Beulich wrote: > On 04.06.2024 10:18, Chen, Jiqian wrote: >> I tried to get more debug information from my environment. And I attach them >> here, maybe you can find some problems. >> acpi_parse_madt_ioapic_entries >>

Re: [RFC XEN PATCH v8 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-04 Thread Chen, Jiqian
On 2024/6/4 14:36, Jan Beulich wrote: > On 04.06.2024 08:33, Chen, Jiqian wrote: >> On 2024/6/4 14:12, Jan Beulich wrote: >>> On 04.06.2024 08:01, Chen, Jiqian wrote: >>>> On 2024/6/4 13:55, Jan Beulich wrote: >>>>> On 04.06.2024 05:04, Chen, Jiqian

Re: [RFC XEN PATCH v8 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi

2024-06-03 Thread Chen, Jiqian
On 2024/6/4 14:12, Jan Beulich wrote: > On 04.06.2024 08:01, Chen, Jiqian wrote: >> On 2024/6/4 13:55, Jan Beulich wrote: >>> On 04.06.2024 05:04, Chen, Jiqian wrote: >>>> On 2024/5/30 23:51, Jan Beulich wrote: >>>>> On 30.05.2024 13:19, Chen, Jiqian

  1   2   >