qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: qemu-devel@nongnu.org
Cc: Laurent Vivier <Laurent.Vivier@bull.net>
Subject: Re: [Qemu-devel] [PATCH 2/2 v2][UPDATED] Direct IDE I/O
Date: Tue, 18 Dec 2007 18:38:24 +0200	[thread overview]
Message-ID: <4767F780.6030909@qumranet.com> (raw)
In-Reply-To: <200712180003.49328.paul@codesourcery.com>

Paul Brook wrote:
>> Unfortunately it is more complicated to write to the CPU memory. In
>> particular, specific action should be done when translated code is
>> present. A consistent API must include something like cpu_page_lock() /
>> unlock(). Look at cpu_physical_memory_rw() to see the various issues
>> which must be handled. Moreover, it would be better to add bus specific
>> APIs (at least for PCI), but I can accept a CPU memory API for now.
>>     
>
> In general it may also be unsafe to do async writes directly to guest memory 
> because you break the atomicity of loads/stores.
>
>   

But that is true on real hardware as well, I think.  The guest cannot 
expect atomicity if it dmas into the memory it is accessing.

Also, it would be a rare guest that accesses memory while dma is active.

-- 
error compiling committee.c: too many arguments to function

  parent reply	other threads:[~2007-12-18 16:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-17 22:09 [Qemu-devel] [PATCH 0/2 v2][UPDATED] Open disk images with O_DIRECT Laurent Vivier
2007-12-17 22:09 ` [Qemu-devel] [PATCH 1/2 v2][UPDATE] Add "cache" parameter to "-drive" Laurent Vivier
2007-12-17 22:09   ` [Qemu-devel] [PATCH 2/2 v2][UPDATED] Direct IDE I/O Laurent Vivier
2007-12-17 23:02     ` Fabrice Bellard
2007-12-18  0:03       ` Paul Brook
2007-12-18  9:55         ` Laurent Vivier
2007-12-18 16:38         ` Avi Kivity [this message]
2007-12-17 23:08   ` [Qemu-devel] [PATCH 1/2 v2][UPDATE] Add "cache" parameter to "-drive" Fabrice Bellard

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=4767F780.6030909@qumranet.com \
    --to=avi@qumranet.com \
    --cc=Laurent.Vivier@bull.net \
    --cc=qemu-devel@nongnu.org \
    /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).