From: Don Slutz <dslutz@verizon.com>
To: Jan Beulich <JBeulich@suse.com>, Don Slutz <dslutz@verizon.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
xen-devel@lists.xen.org, Ian Jackson <ian.jackson@eu.citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH v3 1/1] Add pci_hole_min_size
Date: Tue, 01 Jul 2014 09:54:31 -0400 [thread overview]
Message-ID: <53B2BD97.3090501@terremark.com> (raw)
In-Reply-To: <53B2CA36020000780001F015@mail.emea.novell.com>
On 07/01/14 08:48, Jan Beulich wrote:
>>>> On 01.07.14 at 13:56, <dslutz@verizon.com> wrote:
>> On 06/27/14 04:34, Jan Beulich wrote:
>>> Furthermore the whole concept collides with the auto-growing of
>>> the hole immediately following this code. Both logically (both having
>>> a similar purpose) and, what's worse, functionally in that the
>>> shifting done there requires that ((1ULL << 32) - pci_mem_start)
>>> be a power of 2. An option might be to skip this auto-sizing if the
>>> option was given.
>> I am fine with disabling the auto-growing (since as far as I know
>> this is bug #28 (
>>
>>
>> #28 - support PCI hole resize in qemu-xen
>>
>> )
> But that's only with upstream qemu I suppose; the auto-resizing
> was added for a reason (see the history of the file). So this is
> definitely not going to be an unconditional disabling (other than
> what I kind of read from your reply).
I was not clear. I am thinking that if pci_hole_min_size (or what ever
the name is) is non-zero (i.e. not default (could be exists also)), I would
disable the auto-resizing code. As far as I know, the auto-resizing only
works with qemu-xen-traditional. I was not planning to add
max-ram-below-4g to qemu-xen-traditional (but it would not be a big
patch nor as complex as what is in qemu-xen (upstream master)).
so currently it would be:
+ }
+ else
+ {
/*
* At the moment qemu-xen can't deal with relocated memory regions.
* It's too close to the release to make a proper fix; for now,
* only allow the MMIO hole to grow large enough to move guest memory
* if we're running qemu-traditional. Items that don't fit will be
* relocated into the 64-bit address space.
*
* This loop now does the following:
* - If allow_memory_relocate, increase the MMIO hole until it's
* big enough, or until it's 2GiB
* - If !allow_memory_relocate, increase the MMIO hole until it's
* big enough, or until it's 2GiB, or until it overlaps guest
* memory
*/
while ( (mmio_total > (pci_mem_end - pci_mem_start))
&& ((pci_mem_start << 1) != 0)
&& (allow_memory_relocate
|| (((pci_mem_start << 1) >> PAGE_SHIFT)
>= hvm_info->low_mem_pgend)) )
pci_mem_start <<= 1;
+ }
But looking closer I could just set:
HVM_XS_ALLOW_MEMORY_RELOCATE to 0
to stop part of this. And the other part should be false do to
xc_hvm_build_with_hole()
but this will need testing.
-Don Slutz
> Jan
>
prev parent reply other threads:[~2014-07-01 13:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 17:47 [PATCH v3 0/1] Add pci_hole_min_size Don Slutz
2014-06-26 17:47 ` [PATCH v3 1/1] " Don Slutz
2014-06-27 8:34 ` Jan Beulich
2014-07-01 11:56 ` Don Slutz
2014-07-01 12:48 ` Jan Beulich
2014-07-01 13:54 ` Don Slutz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53B2BD97.3090501@terremark.com \
--to=dslutz@verizon.com \
--cc=JBeulich@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.