On 23.09.2021 14:54, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko <[email protected]> > > Emulate guest BAR register values: this allows creating a guest view > of the registers and emulates size and properties probe as it is done > during PCI device enumeration by the guest. > > ROM BAR is only handled for the hardware domain and for guest domains > there is a stub: at the moment PCI expansion ROM is x86 only, so it > might not be used by other architectures without emulating x86. Other > use-cases may include using that expansion ROM before Xen boots, hence > no emulation is needed in Xen itself. Or when a guest wants to use the > ROM code which seems to be rare. > > Signed-off-by: Oleksandr Andrushchenko <[email protected]> > > --- > Since v1: > - re-work guest read/write to be much simpler and do more work on write > than read which is expected to be called more frequently > - removed one too obvious comment > > Signed-off-by: Oleksandr Andrushchenko <[email protected]> > --- > xen/drivers/vpci/header.c | 30 +++++++++++++++++++++++++++++- > xen/include/xen/vpci.h | 3 +++ > 2 files changed, 32 insertions(+), 1 deletion(-) > FWICS you addressed all Jan's comments from v1 so: Reviewed-by: Michal Orzel <[email protected]>
- Re: [PATCH v2 07/11] vpci/header: program... Jan Beulich
- Re: [PATCH v2 07/11] vpci/header: pro... Oleksandr Andrushchenko
- Re: [PATCH v2 07/11] vpci/header:... Jan Beulich
- Re: [PATCH v2 07/11] vpci/he... Oleksandr Andrushchenko
- Re: [PATCH v2 07/11] vpci/header: program... Oleksandr Andrushchenko
- [PATCH v2 04/11] vpci/header: Add and remove regis... Oleksandr Andrushchenko
- [PATCH v2 03/11] vpci/header: Move register assign... Oleksandr Andrushchenko
- [PATCH v2 06/11] vpci/header: Handle p2m range set... Oleksandr Andrushchenko
- [PATCH v2 02/11] vpci: Add hooks for PCI device as... Oleksandr Andrushchenko
- [PATCH v2 05/11] vpci/header: Implement guest BAR ... Oleksandr Andrushchenko
- Re: [PATCH v2 05/11] vpci/header: Implement g... Michal Orzel
- [PATCH v2 01/11] vpci: Make vpci registers removal... Oleksandr Andrushchenko
- Re: [PATCH v2 01/11] vpci: Make vpci register... Michal Orzel
- [PATCH v2 08/11] vpci/header: Emulate PCI_COMMAND ... Oleksandr Andrushchenko
- Re: [PATCH v2 08/11] vpci/header: Emulate PCI... Michal Orzel
- [PATCH v2 09/11] vpci/header: Reset the command re... Oleksandr Andrushchenko
- Re: [PATCH v2 09/11] vpci/header: Reset the c... Michal Orzel
- [PATCH v2 11/11] xen/arm: Translate virtual PCI bu... Oleksandr Andrushchenko
- Re: [PATCH v2 11/11] xen/arm: Translate virtu... Jan Beulich
- Re: [PATCH v2 11/11] xen/arm: Translate v... Oleksandr Andrushchenko
- Re: [PATCH v2 11/11] xen/arm: Transla... Jan Beulich
