qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] AHCI: avoid mapping stale guest memory
@ 2015-03-10 21:29 John Snow
  2015-03-10 21:29 ` [Qemu-devel] [PATCH 1/2] AHCI: Do not (re)map FB/CLB buffers while not running John Snow
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: John Snow @ 2015-03-10 21:29 UTC (permalink / raw)
  To: qemu-block; +Cc: pbonzini, John Snow, qemu-devel, stefanha

Currently, the AHCI device tries to re-map guest memory every time
the low or high address registers are written to, whether or not the
AHCI device is currently active. If the other register has stale
information in it, this may lead to runtime failures.

Reconfigure the AHCI device to ignore writes to these registers while
the device is active, and otherwise postpone the dma memory map until
the device becomes active.

John Snow (2):
  AHCI: Do not (re)map FB/CLB buffers while not running
  AHCI: Protect cmd register

 hw/ide/ahci.c | 61 ++++++++++++++++++++++++++++++++++++++++++++---------------
 hw/ide/ahci.h |  2 ++
 2 files changed, 48 insertions(+), 15 deletions(-)

-- 
1.9.3

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

end of thread, other threads:[~2015-03-12 13:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10 21:29 [Qemu-devel] [PATCH 0/2] AHCI: avoid mapping stale guest memory John Snow
2015-03-10 21:29 ` [Qemu-devel] [PATCH 1/2] AHCI: Do not (re)map FB/CLB buffers while not running John Snow
2015-03-10 21:29 ` [Qemu-devel] [PATCH 2/2] AHCI: Protect cmd register John Snow
2015-03-12 13:47 ` [Qemu-devel] [Qemu-block] [PATCH 0/2] AHCI: avoid mapping stale guest memory Stefan Hajnoczi
2015-03-12 13:49 ` Stefan Hajnoczi

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