|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for 4.5 v7 1/1] Add mmio_hole_size
On 10/20/14 10:17, Ian Campbell wrote: On Mon, 2014-10-13 at 08:51 -0400, Don Slutz wrote:diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 index 8bba21c..10e995a 100644 --- a/docs/man/xl.cfg.pod.5 +++ b/docs/man/xl.cfg.pod.5 @@ -1111,6 +1111,21 @@ wallclock (i.e., real) time.=back +=head3 Memory layout+ +=over 4 + +=item B<mmio_hole_size=BYTES> + +Specifies the size the MMIO hole below 4GiB will be. Only valid for +device_model_version = "qemu-xen". + +Cannot be smaller than 256MiB. Cannot be larger than 3840MiB. + +Known good large value is 3GiB (3221225472).I think the literal values "3GiB"/"3840MiB" etc won't work, will they? Nope. Is there any need to be able to specify this size at byte granularity? All of the other xl options use MBYTES as there units, which is much easier for people to deal with (e.g. 3072 vs 3221225272). I do not have this need. Will adjust to MBYTES
Yes, I can switch to "LOG(WARN". I can drop the extra info (note: via xl you should not get this message, it would be logged else where.)
Ok, Jan Beulich had proposed the name with the _size (on 27 Jun 2014), but he did also say "(whether the xl config option should also get renamed I'm notsure - the xl maintainers will know )", (so I am taking this as ok from Jan) I will rename to mmio_hole_memkb here. +#include <xen/hvm/e820.h>#include "libxl.h" Nope. Will drop. + /* + * With HVM_BELOW_4G_RAM_END == 0xF0000000, mmio_hole_size + * must be >= 256 MiB and <= 3840 MiB.Isn't this just restating the if condition in a way which is liable to get out of sync if the values of HVM_BELOW_4G_* ever changes? Well, Konrad asked for this: Subject: Re: [Xen-devel] [PATCH for 4.5 v6 1/1] Add mmio_hole_size Date: Tue, 7 Oct 2014 10:08:13 -0400 From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> To: Don Slutz <dslutz@xxxxxxxxxxx>CC: xen-devel@xxxxxxxxxxxxx, Ian Campbell <ian.campbell@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> ... Oh boy, this check for 256MB is surely obfuscated by the macros. Could you include a comment saying that HVM_BELOW_4G_MMIO_LENGTH resolves to 256MB please? ... So I do not know which way to go here.
Sure, with it in MBYTES just decimal should be enough. -Don Slutz Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |