All of lore.kernel.org
 help / color / mirror / Atom feed
* c/s 24425:053a44894279 (xsm: add checks on PCI configuration access)
@ 2012-06-21 13:20 Jan Beulich
  2012-06-21 14:19 ` Daniel De Graaf
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Beulich @ 2012-06-21 13:20 UTC (permalink / raw)
  To: dgdegra, Keir Fraser; +Cc: xen-devel

The mmconfig part of this is seriously broken: These operations,
even when carried out by Dom0, are MMIO accesses, and hence
are invisible to the hypervisor without extra handling. Putting
the checks into pci_mmcfg_{read,write}() has the effect of
potentially denying the _hypervisor_ access. So I think at least
that part needs to be reverted.

Even the I/O port base logic isn't fully correct - AMD's extension
to access extended config space isn't being taken care of (i.e.
wrong register values might get passed to the xsm callback).

(It is, btw, also this c/s that prompted the fix titled "x86/PCI:
fix guest_io_read() when pci_cfg_ok() denies access" I sent
out earlier today, so if we decide to revert the whole c/s, that
wouldn't be needed anymore. Yet the function comes handy
for dealing with the MMIO-write-masking that we're currently
evaluating with the AMD folks to get their IOMMU interrupts
working again with recent Linux Dom0 - see yesterday's
http://lists.xen.org/archives/html/xen-devel/2012-06/msg01129.html.)

Jan

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

end of thread, other threads:[~2012-06-22  8:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-21 13:20 c/s 24425:053a44894279 (xsm: add checks on PCI configuration access) Jan Beulich
2012-06-21 14:19 ` Daniel De Graaf
2012-06-21 14:20   ` [PATCH] x86/PCI: pass correct register value to XSM Daniel De Graaf
2012-06-21 15:05     ` Jan Beulich
2012-06-21 17:01       ` Daniel De Graaf
2012-06-22  8:03         ` Jan Beulich
2012-06-22  8:33         ` Jan Beulich
2012-06-22  8:53           ` Keir Fraser
2012-06-21 15:13   ` c/s 24425:053a44894279 (xsm: add checks on PCI configuration access) Jan Beulich
2012-06-21 15:14     ` Daniel De Graaf

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.