All of lore.kernel.org
 help / color / mirror / Atom feed
* Dom0 hypercall for adding and removing PCI devices
@ 2008-07-23  9:04 Han, Weidong
  2008-07-23  9:10 ` Keir Fraser
  0 siblings, 1 reply; 15+ messages in thread
From: Han, Weidong @ 2008-07-23  9:04 UTC (permalink / raw)
  To: xen-devel
  Cc: joshua.levasseur, Li, Xin B, Jiang, Yunhong, espen.skoglund,
	Keir Fraser

Now dom0 uses hypercalls to add and remove PCI devices. In
pci_bus_probe_wrapper(), it firstly adds device, then use
pci_bus_probe() to probe it, remove the device if probe fails. The
approach is good to only assign workable devices (pci_bus_probe()
successes) to dom0, but it obviously misses RMRR. During dom0 booting,
BIOS will use RMRRs. If don't map RMRRs, system will hang. There are two
options:

1) Add a check in domain_context_unmap_one(), don't remove the device
from dom0 if it has RMRR. This check is added yesterday. But it's not
clean enough. The device is not assigned to dom0, while it is mapped in
dom0 VT-d page table.

2) Establish a separate RMRR page table. If the device with RMRR is
removed from dom0, unmap it from dom0 VT-d page table, instead map it to
the separate RMRR page table. This solution is clean, but it introduces
a new VT-d page table. Currently each domain has only one VT-d page
table.

What's your opinions?

Randy (Weidong) 

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

end of thread, other threads:[~2008-07-24 14:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23  9:04 Dom0 hypercall for adding and removing PCI devices Han, Weidong
2008-07-23  9:10 ` Keir Fraser
2008-07-23  9:26   ` Han, Weidong
2008-07-23  9:28     ` Keir Fraser
2008-07-23 18:07       ` Espen Skoglund
     [not found]         ` <0122C7C995D32147B66BF4F440D301630159F319@pdsmsx415.ccr.corp.intel.com>
2008-07-24  8:20           ` Han, Weidong
2008-07-24  8:23             ` Keir Fraser
2008-07-24  8:32               ` Han, Weidong
2008-07-24  8:37                 ` Keir Fraser
2008-07-24  8:43                   ` Tian, Kevin
2008-07-24  8:47                     ` Keir Fraser
2008-07-24  9:14                       ` Han, Weidong
2008-07-24  9:27                         ` Keir Fraser
2008-07-24 14:16                         ` Espen Skoglund
2008-07-24 14:47                           ` Tian, Kevin

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.