From: Avi Kivity <avi@redhat.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "jan.kiszka@siemens.com" <jan.kiszka@siemens.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH v3 5/6] xen: record physmap changes to xenstore
Date: Wed, 25 Jan 2012 13:45:29 +0200 [thread overview]
Message-ID: <4F1FEB59.8060102@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1201191407050.3150@kaball-desktop>
On 01/19/2012 04:16 PM, Stefano Stabellini wrote:
> >
> > If you are migrating to a newer qemu then the <original-addr> could in
> > principal change, I think.
>
> Not unless the implementation of qemu_ram_alloc_from_ptr or
> find_ram_offset change, but these are core qemu functions.
Both of these functions will be removed. There will no longer be a
qemu-internal address space for physical memory; instead memory will be
addressed using a (MemoryRegion, offset) pair.
We can/will hook memory_region_init_ram() to call xen_ram_alloc() which
can then generate those old addresses, but those (like qemu_ram_alloc())
are dependent on allocation order and you shouldn't depend on them
returning stable values.
> Or the device starts allocating more memory of course, but it wouldn't
> be the same device anymore.
> In any case, if we also match on the MemoryRegion name we cannot go
> wrong.
Match on just the MemoryRegion (and match on the object itself, not the
name; see xen_register_framebuffer()).
> > > We could add some additional info to better identify the physmap entry,
> > > probably the best we could use is the memory_region name.
> >
> > And/Or the PCI BDF + BAR?
>
> I don't think we can get the PCI BDF from the Xen MemoryListener, but we
> can get the MemoryRegion. The most identifying info in it I think is the
> name, for example for vga would be "vga.vram".
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2012-01-25 11:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 11:55 [Qemu-devel] [PATCH v3 0/6] save/restore on Xen Stefano Stabellini
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 1/6] vl.c: do not save the RAM state when Xen is enabled Stefano Stabellini
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 2/6] xen mapcache: check if memory region has moved Stefano Stabellini
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 3/6] Set runstate to INMIGRATE earlier Stefano Stabellini
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 4/6] cirrus_vga: do not reset videoram on resume Stefano Stabellini
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 5/6] xen: record physmap changes to xenstore Stefano Stabellini
2012-01-19 12:24 ` [Qemu-devel] [Xen-devel] " Ian Campbell
2012-01-19 13:08 ` Stefano Stabellini
2012-01-19 14:04 ` Ian Campbell
2012-01-19 14:16 ` Stefano Stabellini
2012-01-25 11:45 ` Avi Kivity [this message]
2012-01-25 11:55 ` Stefano Stabellini
2012-01-25 12:00 ` Avi Kivity
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 6/6] xen: change memory access behavior during migration Stefano Stabellini
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=4F1FEB59.8060102@redhat.com \
--to=avi@redhat.com \
--cc=Ian.Campbell@citrix.com \
--cc=jan.kiszka@siemens.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).