All of lore.kernel.org
 help / color / mirror / Atom feed
* PCI pass-through vs PoD
@ 2021-09-13  9:02 Jan Beulich
  2021-11-17  8:39 ` Jan Beulich
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2021-09-13  9:02 UTC (permalink / raw)
  To: xen-devel
  Cc: Anthony Perard, Ian Jackson, Paul Durrant, George Dunlap, Wei Liu

Hello,

libxl__domain_config_setdefault() checks whether PoD is going to be
enabled and fails domain creation if at the same time devices would get
assigned. Nevertheless setting up of IOMMU page tables is allowed.
However, when later assigning a device to a domain which has IOMMU page
tables, libxl__device_pci_add() does not appear to be concerned of PoD:
- xc_test_assign_device() / XEN_DOMCTL_test_assign_device only check the
  device for being available to assign,
- libxl__device_pci_setdefault() is only concerned about the RDM policy,
- other functions called look to not be related to such checking at all.

IMO assignment should fail if pod.count != pod.entry_count, and all PoD
entries should be resolved otherwise (whether explicitly by the
hypervisor or through some suitable existing hypercalls - didn't check
yet whether there are any reasonable candidates - by the tool stack is
secondary).

Jan



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-18  8:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13  9:02 PCI pass-through vs PoD Jan Beulich
2021-11-17  8:39 ` Jan Beulich
2021-11-17  8:55   ` Roger Pau Monné
2021-11-17 10:13     ` Jan Beulich
2021-11-17 11:09       ` Andrew Cooper
2021-11-17 11:23         ` Jan Beulich
2021-11-17 13:07           ` Andrew Cooper
2021-11-18  8:08             ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.