* [Qemu-devel] [PATCH] exec, Fix guest memory access.
@ 2012-03-19 15:54 Anthony PERARD
2012-03-19 17:13 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Anthony PERARD @ 2012-03-19 15:54 UTC (permalink / raw)
To: QEMU-devel, qemu-trivial
Cc: Anthony PERARD, Anthony Liguori, Xen Devel, Avi Kivity,
Stefano Stabellini
In cpu_physical_memory_rw, a change has been introduced and qemu_get_ram_ptr is
no longuer called with the ram addr we want to access, but only with the
section address. This patch fixes this. (All other call to qemu_get_ram_ptr are
already called with the right address.)
This patch fixes Xen guest.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
exec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/exec.c b/exec.c
index be392e2..be08930 100644
--- a/exec.c
+++ b/exec.c
@@ -3851,8 +3851,8 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
}
} else {
/* RAM case */
- ptr = qemu_get_ram_ptr(section->mr->ram_addr)
- + section_addr(section, addr);
+ ptr = qemu_get_ram_ptr(section->mr->ram_addr
+ + section_addr(section, addr));
memcpy(buf, ptr, l);
qemu_put_ram_ptr(ptr);
}
--
tg: (30f51d7..) fix/memory_access (depends on: master)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] exec, Fix guest memory access.
2012-03-19 15:54 [Qemu-devel] [PATCH] exec, Fix guest memory access Anthony PERARD
@ 2012-03-19 17:13 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2012-03-19 17:13 UTC (permalink / raw)
To: Anthony PERARD
Cc: qemu-trivial, Anthony Liguori, Xen Devel, QEMU-devel,
Stefano Stabellini
On 03/19/2012 05:54 PM, Anthony PERARD wrote:
> In cpu_physical_memory_rw, a change has been introduced and qemu_get_ram_ptr is
> no longuer called with the ram addr we want to access, but only with the
> section address. This patch fixes this. (All other call to qemu_get_ram_ptr are
> already called with the right address.)
>
> This patch fixes Xen guest.
>
Thanks, applied to memory/urgent, will push shortly.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-19 17:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 15:54 [Qemu-devel] [PATCH] exec, Fix guest memory access Anthony PERARD
2012-03-19 17:13 ` 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).