All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>,
	Jens Freimann <jfrei@linux.vnet.ibm.com>,
	Heinz Graalfs <graalfs@linux.vnet.ibm.com>,
	Alexander Graf <agraf@suse.de>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 2/6] s390: sclp base support
Date: Mon, 16 Jul 2012 09:04:52 +0200	[thread overview]
Message-ID: <5003BD14.2090709@de.ibm.com> (raw)
In-Reply-To: <CAAu8pHsN=Fa8WNgCyoEBkWZ2xiozZoEo=q8T2iXUnKvX0wDgAA@mail.gmail.com>

On 14/07/12 10:48, Blue Swirl wrote:
>>>> +    cpu_physical_memory_write(sccb, &work_sccb,
>>>> +                              be16_to_cpu(work_sccb.h.length));
>>>
>>> Perhaps the DMA helpers should be used instead.
>>>
>>
>> Is there any rule what to use under which circumstances.
> 
> No, it's a recent addition. Devices (at least those which may be used
> in IOMMU environment) should use DMA helpers for their memory accesses
> in general but virtio may be an exception. I'm not sure which category
> this falls in.

Ok, I read this as, if we need to handle DMA into virtual addresses at some
point in time dma helpers are the way to go.

With SCLP we access real storage (no translation) so I think 
cpu_physical_memory_write is fine here. 

Christian

  reply	other threads:[~2012-07-16  7:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13 10:51 [Qemu-devel] [PATCH 0/6v2] s390: several sclp patches Christian Borntraeger
2012-07-13 10:51 ` [Qemu-devel] [PATCH 1/6] s390: Fix error handling and condition code of service call Christian Borntraeger
2012-07-13 10:52 ` [Qemu-devel] [PATCH 2/6] s390: sclp base support Christian Borntraeger
2012-07-13 15:08   ` Blue Swirl
2012-07-13 16:44     ` Christian Borntraeger
2012-07-14  8:48       ` Blue Swirl
2012-07-16  7:04         ` Christian Borntraeger [this message]
2012-07-20 14:06   ` Andreas Färber
2012-07-23 11:05     ` Christian Borntraeger
2012-07-13 10:52 ` [Qemu-devel] [PATCH 3/6] s390: sclp event support Christian Borntraeger
2012-07-13 15:10   ` Blue Swirl
2012-07-13 10:52 ` [Qemu-devel] [PATCH 4/6] s390: sclp signal quiesce support Christian Borntraeger
2012-07-13 10:52 ` [Qemu-devel] [PATCH 5/6] s390: sclp ascii console support Christian Borntraeger
2012-07-13 10:52 ` [Qemu-devel] [PATCH 6/6] s390: make sclp ascii console the default Christian Borntraeger

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=5003BD14.2090709@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=agraf@suse.de \
    --cc=blauwirbel@gmail.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=graalfs@linux.vnet.ibm.com \
    --cc=jfrei@linux.vnet.ibm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.