qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Memory API mutators
@ 2011-09-14  9:23 Avi Kivity
  2011-09-14  9:23 ` [Qemu-devel] [PATCH 1/3] memory: introduce memory_region_set_enabled() Avi Kivity
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Avi Kivity @ 2011-09-14  9:23 UTC (permalink / raw)
  To: qemu-devel, Anthony Liguori, Peter Maydell

This patchset introduces memory_region_set_enabled() and
memory_region_set_address() to avoid the requirement on memory
routers to track the internal state of the memory API (so they know
whether they need to add or remove a region).  Instead, they can
simply copy the state of the region from the guest-exposed register
to the memory core, via the new mutator functions.

Please review.  Do we need a memory_region_set_size() as well?  Do we want

  memory_region_set_attributes(mr,
                               MR_ATTR_ENABLED | MR_ATTR_SIZE,
                               (MemoryRegionAttributes) {
                                   .enabled = s->enabled,
                                   .address = s->addr,
                               });

?

Avi Kivity (3):
  memory: introduce memory_region_set_enabled()
  memory: introduce memory_region_set_address()
  memory: optimize empty transactions due to mutators

 memory.c |   64 ++++++++++++++++++++++++++++++++++++++++++++++++++++---------
 memory.h |   28 +++++++++++++++++++++++++++
 2 files changed, 82 insertions(+), 10 deletions(-)

-- 
1.7.6.3

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-09-14 11:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14  9:23 [Qemu-devel] [PATCH 0/3] Memory API mutators Avi Kivity
2011-09-14  9:23 ` [Qemu-devel] [PATCH 1/3] memory: introduce memory_region_set_enabled() Avi Kivity
2011-09-14  9:23 ` [Qemu-devel] [PATCH 2/3] memory: introduce memory_region_set_address() Avi Kivity
2011-09-14  9:23 ` [Qemu-devel] [PATCH 3/3] memory: optimize empty transactions due to mutators Avi Kivity
2011-09-14  9:49 ` [Qemu-devel] [PATCH 0/3] Memory API mutators Avi Kivity
2011-09-14 10:27   ` Jan Kiszka
2011-09-14 11:46     ` Avi Kivity
2011-09-14  9:56 ` Peter Maydell
2011-09-14 10:02   ` Avi Kivity
2011-09-14 10:21     ` Peter Maydell
2011-09-14 11:54       ` Avi Kivity

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).