All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Marcelo Tossati <mtosatti@redhat.com>,
	Carsten Otte <cotte@de.ibm.com>, Alexander Graf <agraf@suse.de>,
	Jens Freimann <jfrei@linux.vnet.ibm.com>,
	Cornelia Huck <cornelia.huck@de.ibm.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>,
	Heinz Graalfs <graalfs@linux.vnet.ibm.com>,
	KVM <kvm@vger.kernel.org>
Subject: Re: [PATCH 1/4] kvm-s390: add capability indicating COW support
Date: Tue, 15 May 2012 15:40:04 +0300	[thread overview]
Message-ID: <4FB24EA4.2030503@redhat.com> (raw)
In-Reply-To: <4FB24E46.1050600@de.ibm.com>

On 05/15/2012 03:38 PM, Christian Borntraeger wrote:
> On 15/05/12 14:33, Avi Kivity wrote:
> > On 05/15/2012 03:31 PM, Christian Borntraeger wrote:
> >> On 15/05/12 14:24, Avi Kivity wrote:
> >>>> Newer systems allow to write-protect the guest backing memory
> >>>> and let the fault be delivered to the host, thus allowing COW.
> >>>>
> >>>> Use a capability bit to tell qemu if that is possible.
> >>>>
> >>>
> >>> Asking out of ignorance: who is doing the write protection here? The
> >>> guest?  If so, why is qemu involved?
> >>
> >> It is about the host doing write protection of guest/user memory (e.g. for 
> >> dirty pages tracking or KSM)
> > 
> > Ok, so why does qemu^Wuserspace need to know about it?
>
> By default qemu will use MAP_PRIVATE for guest pages. This will write
> protect pages and thus break on s390 systems that dont support this feature.
> Therefore qemu has a hack to always use MAP_SHARED for s390. But MAP_SHARED
> has other problems (no dirty pages tracking, a lot more swap overhead etc.)
> With this feature qemu can use the standard qemu alloc if available, otherwise
> it will use the old s390 hack. I will put you on cc for the qemu patch :-)

Yeah, I even have vague memories of the hack.  Thanks for the
clarifications.

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


  reply	other threads:[~2012-05-15 12:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15 12:15 [PATCH 0/4] kvm-s390: feature patches Christian Borntraeger
2012-05-15 12:15 ` [PATCH 1/4] kvm-s390: add capability indicating COW support Christian Borntraeger
2012-05-15 12:24   ` Avi Kivity
2012-05-15 12:31     ` Christian Borntraeger
2012-05-15 12:33       ` Avi Kivity
2012-05-15 12:38         ` Christian Borntraeger
2012-05-15 12:40           ` Avi Kivity [this message]
2012-06-05 12:36           ` Alexander Graf
2012-05-15 12:49   ` [Qemu-devel] [PATCH 0/1] memory detection hack for s390 Christian Borntraeger
2012-05-15 12:49     ` [Qemu-devel] [PATCH 1/1] s390: autodetect map private Christian Borntraeger
2012-06-05 12:50       ` Alexander Graf
2012-06-05 12:44     ` [Qemu-devel] [PATCH 0/1] memory detection hack for s390 Alexander Graf
2012-05-15 12:15 ` [PATCH 2/4] kvm-s390: KVM_GET/SET_ONEREG " Christian Borntraeger
2012-06-05 12:37   ` Alexander Graf
2012-05-15 12:15 ` [PATCH 3/4] kvm-s390: epoch difference and TOD programmable field Christian Borntraeger
2012-06-05 12:40   ` Alexander Graf
2012-05-15 12:15 ` [PATCH 4/4] kvm-s390: onereg for timer related registers Christian Borntraeger
2012-06-05 12:42   ` Alexander Graf
2012-06-05 12:57     ` Christian Borntraeger
2012-06-05 13:03       ` Alexander Graf
2012-05-15 12:26 ` [PATCH 0/4] kvm-s390: feature patches Avi Kivity
2012-05-15 12:34   ` Christian Borntraeger
2012-05-18  0:06 ` Marcelo Tosatti

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=4FB24EA4.2030503@redhat.com \
    --to=avi@redhat.com \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=cotte@de.ibm.com \
    --cc=graalfs@linux.vnet.ibm.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=jfrei@linux.vnet.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=schwidefsky@de.ibm.com \
    /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.