From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] hvm: Use main memory for video memory. [Was: xend, 8MB video memory and ballooning]
Date: Thu, 31 Jul 2008 15:57:58 +0100 [thread overview]
Message-ID: <20080731145758.GP4678@implementation.uk.xensource.com> (raw)
In-Reply-To: <C4B77F3F.24EBF%keir.fraser@eu.citrix.com>
Keir Fraser, le Thu 31 Jul 2008 14:39:59 +0100, a écrit :
> On 31/7/08 14:18, "Samuel Thibault" <samuel.thibault@eu.citrix.com> wrote:
>
> > diff -r 83b3a8a2a4f3 tools/libxc/xc_domain_save.c
> > --- a/tools/libxc/xc_domain_save.c Thu Jul 31 12:58:07 2008 +0100
> > +++ b/tools/libxc/xc_domain_save.c Thu Jul 31 13:20:02 2008 +0100
> > @@ -1112,9 +1112,7 @@ int xc_domain_save(int xc_handle, int io
> > continue;
> >
> > /* Skip PFNs that aren't really there */
> > - if ( hvm && ((n >= 0xa0 && n < 0xc0) /* VGA hole */
> > - || (n >= (HVM_BELOW_4G_MMIO_START >> PAGE_SHIFT)
> > - && n < (1ULL<<32) >> PAGE_SHIFT)) /* MMIO */
> > )
> > + if ( hvm && n == shared_info_frame )
> > continue;
>
> What happens if you don't special-case shared_info_frame?
I actually hadn't even tried.
> I'd've hoped it would just work... does the extra page of allocation
> during restore fail?
It does work, but I guess it replaces the mapping of the "magic" page
with the mapping of the allocated page, so that shared_info wouldn't
work any more.
> I'm thinking that the grant tables will be mapped in the I/O hole too, and
> that is from 'Xen heap' just like shared_info is.
Urgl, hadn't thought about those, I guess the PV drivers would
re-etablish them on resume anyway?
> So special-casing one and not the other sure is odd.
Actually, shouldn't it be up to the hypervisor to not return all these
from the SHADOW_OP_PEEK operation?
Samuel
next prev parent reply other threads:[~2008-07-31 14:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 13:18 [PATCH] hvm: Use main memory for video memory. [Was: xend, 8MB video memory and ballooning] Samuel Thibault
2008-07-31 13:22 ` Keir Fraser
2008-07-31 13:27 ` Samuel Thibault
2008-07-31 13:41 ` Keir Fraser
2008-07-31 16:29 ` Samuel Thibault
2008-07-31 13:39 ` Keir Fraser
2008-07-31 14:57 ` Samuel Thibault [this message]
2008-07-31 15:03 ` Keir Fraser
2008-07-31 15:10 ` Samuel Thibault
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=20080731145758.GP4678@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.