Re: [PATCH v1 1/3] vpci: Hide capability when it fails to initialize

2025-04-05 Thread Roger Pau Monné
On Mon, Mar 31, 2025 at 07:26:20AM +, Chen, Jiqian wrote: > On 2025/3/27 17:25, Roger Pau Monné wrote: > > On Thu, Mar 27, 2025 at 03:32:12PM +0800, Jiqian Chen wrote: > >> When vpci fails to initialize a capability of a device, it just > >> return error instead of catching and processing excep

Re: [PATCH v1 1/3] vpci: Hide capability when it fails to initialize

2025-04-04 Thread Chen, Jiqian
On 2025/3/27 17:25, Roger Pau Monné wrote: > On Thu, Mar 27, 2025 at 03:32:12PM +0800, Jiqian Chen wrote: >> When vpci fails to initialize a capability of a device, it just >> return error instead of catching and processing exception. That >> makes the entire device unusable. >> >> So, refactor REG

Re: [PATCH v1 1/3] vpci: Hide capability when it fails to initialize

2025-04-04 Thread Chen, Jiqian
On 2025/3/31 16:43, Roger Pau Monné wrote: > On Mon, Mar 31, 2025 at 07:26:20AM +, Chen, Jiqian wrote: >> On 2025/3/27 17:25, Roger Pau Monné wrote: >>> On Thu, Mar 27, 2025 at 03:32:12PM +0800, Jiqian Chen wrote: #endif /* CONFIG_HAS_VPCI_GUEST_SUPPORT */ +static int vpci_in

Re: [PATCH v1 1/3] vpci: Hide capability when it fails to initialize

2025-04-04 Thread Chen, Jiqian
On 2025/3/31 19:04, Roger Pau Monné wrote: > On Mon, Mar 31, 2025 at 09:32:02AM +, Chen, Jiqian wrote: >> So, I need to refactor the emulating PCI capability list codes of >> init_header() to serve >> for all domain(dom0+domUs) firstly, since current codes only emulate PCI >> capability list

Re: [PATCH v1 1/3] vpci: Hide capability when it fails to initialize

2025-03-31 Thread Roger Pau Monné
On Mon, Mar 31, 2025 at 09:32:02AM +, Chen, Jiqian wrote: > On 2025/3/31 16:43, Roger Pau Monné wrote: > > On Mon, Mar 31, 2025 at 07:26:20AM +, Chen, Jiqian wrote: > >> On 2025/3/27 17:25, Roger Pau Monné wrote: > >>> On Thu, Mar 27, 2025 at 03:32:12PM +0800, Jiqian Chen wrote: > #e

Re: [PATCH v1 1/3] vpci: Hide capability when it fails to initialize

2025-03-31 Thread Jan Beulich
On 31.03.2025 10:43, Roger Pau Monné wrote: > On Mon, Mar 31, 2025 at 07:26:20AM +, Chen, Jiqian wrote: >> On 2025/3/27 17:25, Roger Pau Monné wrote: >>> On Thu, Mar 27, 2025 at 03:32:12PM +0800, Jiqian Chen wrote: --- a/xen/drivers/vpci/vpci.c +++ b/xen/drivers/vpci/vpci.c @@ -3

Re: [PATCH v1 1/3] vpci: Hide capability when it fails to initialize

2025-03-27 Thread Roger Pau Monné
On Thu, Mar 27, 2025 at 03:32:12PM +0800, Jiqian Chen wrote: > When vpci fails to initialize a capability of a device, it just > return error instead of catching and processing exception. That > makes the entire device unusable. > > So, refactor REGISTER_VPCI_INIT to contain more capability specif