All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Hanweidong <hanweidong@huawei.com>
Cc: Ian Jackson <ian.jackson@citrix.com>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] libxl, hvmloader: Don't relocate memory for MMIO hole
Date: Tue, 18 Jun 2013 13:51:20 +0100	[thread overview]
Message-ID: <51C057C8.40304@eu.citrix.com> (raw)
In-Reply-To: <FAB5C136CA8BEA4DBEA2F641E3F5363874C00659@szxeml538-mbs.china.huawei.com>

On 06/18/2013 01:46 PM, Hanweidong wrote:
>
>
>> -----Original Message-----
>> From: George Dunlap [mailto:george.dunlap@eu.citrix.com]
>> Sent: 2013年6月18日 20:21
>> To: Hanweidong
>> Cc: xen-devel@lists.xen.org; Ian Campbell; Ian Jackson; Stefano
>> Stabellini
>> Subject: Re: [PATCH] libxl,hvmloader: Don't relocate memory for MMIO
>> hole
>>
>> On 06/18/2013 01:18 PM, Hanweidong wrote:
>>>> -----Original Message-----
>>>> From: George Dunlap [mailto:george.dunlap@eu.citrix.com]
>>>> Sent: 2013年6月18日 0:49
>>>> To: George Dunlap
>>>> Cc: xen-devel@lists.xen.org; Ian Campbell; Ian Jackson; Stefano
>>>> Stabellini; Hanweidong
>>>> Subject: Re: [PATCH] libxl,hvmloader: Don't relocate memory for MMIO
>>>> hole
>>>>
>>>> On 17/06/13 17:43, George Dunlap wrote:
>>>>> At the moment, qemu-xen can't handle memory being relocated by
>>>>> hvmloader.  This may happen if a device with a large enough memory
>>>>> region is passed through to the guest.  At the moment, if this
>>>>> happens, then at some point in the future qemu will crash and the
>>>>> domain will hang.  (qemu-traditional is fine.)
>>>>>
>>>>> It's too late in the release to do a proper fix, so we try to do
>>>>> damage control.
>>>>>
>>>>> hvmloader already has mechanisms to relocate memory to 64-bit space
>>>>> if it can't make a big enough MMIO hole.  By default this is 2GiB;
>> if
>>>>> we just refuse to make the hole bigger if it will overlap with
>> guest
>>>>> memory, then this codepath will be taken by default.
>>>>>
>>>>> Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
>>>>> CC: Ian Campbell <ian.campbell@citrix.com>
>>>>> CC: Ian Jackson <ian.jackson@citrix.com>
>>>>> CC: Stefano Stabellini <stefano.stabellini@citrix.com>
>>>>> CC: Hanweidong <hanweidong@huawei.com>
>>>>
>>>> Unfortunatley, I don't have an easy way to test this, as all of the
>>>> devices on my system are far smaller than 256MiB.
>>>>
>>>> Weidong, could you give this patch a try and see if it works for you?
>>>>
>>>
>>> George,
>>>
>>> I don't have a system in hand to test it today. I try to have a test
>> tomorrow. In my experience, when it's prevented to relocate memory for
>> MMIO hole by your patch, windows guest will crash (blue screen) and
>> linux guest will hang with a blank display.
>>
>> You mean to say, you've tried this approach before (relocating to a
>> 64-bit MMIO region) and it doesn't work?
>
> I didn't try this approach. I missed you want to map mmio to 64-bit space instead of relocate memory. Currently only mmio size is larger than 512M (PCI_MIN_BIG_BAR_SIZE) will be map to 64-bit space. So you need to change the condition if you want to map smaller mmio to 64-bit space.

Ah, blast -- I forgot about that part.

Looks like the change will have to be bigger... :-(

  -George


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-06-18 12:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17 16:43 [PATCH] libxl, hvmloader: Don't relocate memory for MMIO hole George Dunlap
2013-06-17 16:48 ` George Dunlap
2013-06-18 12:18   ` Hanweidong
2013-06-18 12:20     ` George Dunlap
2013-06-18 12:46       ` Hanweidong
2013-06-18 12:51         ` George Dunlap [this message]
2013-06-18 12:44     ` George Dunlap
2013-06-18 12:54       ` Hanweidong
2013-06-17 17:02 ` George Dunlap
2013-06-17 17:09 ` Wei Liu
2013-06-17 17:15 ` Ian Jackson
2013-06-18  9:50   ` George Dunlap
2013-06-18  9:57     ` George Dunlap
2013-06-18 10:53     ` Ian Jackson
2013-06-18 11:43       ` George Dunlap

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=51C057C8.40304@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=hanweidong@huawei.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@citrix.com \
    --cc=stefano.stabellini@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.