All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] Xen-SWIOTLB fixes (v1) for 3.7
@ 2012-07-26 20:43 Konrad Rzeszutek Wilk
  2012-07-26 20:43 ` [PATCH 1/2] xen/swiotlb: If iommu=soft was not passed in on > 4GB, don't turn it on Konrad Rzeszutek Wilk
  2012-07-26 20:43 ` [PATCH 2/2] xen/swiotlb: If user supplied e820_hole=1 in the guest config, enable SWIOTLB Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 13+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-07-26 20:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: xen-devel

This is an RFC patch for 3.7.

I thought I had addressed this in the past but I can't seem to find
the patches. There is one bug - if one boots a PV 64-bit guests
with more than 4GB, the SWIOTLB gets turned on - and 64MB of precious
low-memory gets used. If you launch more than 10 of them on a 32GB
machines you are going to run in-to trouble as the lowmem gets
exhausted.

On the other hand, the user might want to have 10 guests with 4GB
and each with a PCI device!

So to fix this, we are going to figure out whether the user had
provided the e820_hole=1 parameter in the guest config. The effect
of that parameter is that a massaged host's E820 is used in the guest
 - and we check if it has E820_ACPI or E820_NVS. If so, the user
really wanted to pass in PCI devices to the guest.

Since we now have a routine to check for the e820_hole we can optimize and
see if the user forgot the "iommu=soft" and automatically turn that
on.

The patches are RFC b/c it looks like something has gone bit-rotten the
last time I used this (when Fedora Core 16 was released) b/c I can't
get a guest to boot with e820_hole :-(. But they [the patches] look
sound to me and they do fix the bug of allocating SWIOTLB for normal
PV guests..


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

end of thread, other threads:[~2012-07-30 15:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 20:43 [RFC PATCH] Xen-SWIOTLB fixes (v1) for 3.7 Konrad Rzeszutek Wilk
2012-07-26 20:43 ` [PATCH 1/2] xen/swiotlb: If iommu=soft was not passed in on > 4GB, don't turn it on Konrad Rzeszutek Wilk
2012-07-27  7:27   ` Jan Beulich
2012-07-27  7:27   ` [Xen-devel] " Jan Beulich
2012-07-27 17:54     ` Konrad Rzeszutek Wilk
2012-07-27 17:54     ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-07-30  7:06       ` Jan Beulich
2012-07-30  7:06       ` Jan Beulich
2012-07-27 11:06   ` Stefano Stabellini
2012-07-27 17:55     ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-07-30 14:58       ` Stefano Stabellini
2012-07-30 15:10         ` Konrad Rzeszutek Wilk
2012-07-26 20:43 ` [PATCH 2/2] xen/swiotlb: If user supplied e820_hole=1 in the guest config, enable SWIOTLB Konrad Rzeszutek Wilk

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.