From: Greg Kurz <gkurz@linux.vnet.ibm.com>
To: Alexander Graf <agraf@suse.de>
Cc: Michael Neuling <mikey@neuling.org>,
Rusty Russell <rusty@rustcorp.com.au>,
qemu-devel@nongnu.org, kvm-ppc@vger.kernel.org,
qemu-ppc@nongnu.org, Paul Mackerras <paulus@samba.org>,
Laurent Dufour <ldufour@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [Qemu-ppc] [RFC] QEMU/KVM PowerPC: virtio and guest endianness
Date: Fri, 4 Oct 2013 16:08:06 +0200 [thread overview]
Message-ID: <20131004160806.42c1d53d@bahia.local> (raw)
In-Reply-To: <46DFE136-500E-4192-BB38-06333A6A0901@suse.de>
Answering to both Paul and Alex.
On Fri, 4 Oct 2013 13:54:25 +0200
Alexander Graf <agraf@suse.de> wrote:
>
> On 04.10.2013, at 13:53, Paul Mackerras wrote:
> >
> > I don't mind particularly whether H_SET_MODE for the endianness
> > setting gets handled in the kernel or in QEMU, but I don't think it
> > should be handled in both. If you want QEMU to know about the
> > endianness setting immediately, make the kernel version do nothing
> > and get QEMU to handle it -- which if KVM is enabled will mean
> > iterating over all vcpus and getting them all to send the new LPCR
> > setting to the kernel via the SET_ONE_REG ioctl.
> >
> > However, I want the setting of breakpoint registers (CIABR and
> > DAWR/X) via H_SET_MODE to happen in the kernel, preferably in real
> > mode, since that can happen on context switch and thus needs to be
> > quick.
>
Paul,
As far as virtio is concerned, QEMU only needs to know about the guest
endiannes if a virtio device shows up. The virtio reset flow is a
good candiadate for that.
> I don't want to see a single hypercall be split across the QEMU/KVM
> barrier. So if there's a reasonable incentive to handle H_SET_MODE in
> KVM, we should handle all of it in KVM.
>
Alex,
The appropriate solution would be then to let KVM implement the whole
H_SET_MODE hcall and own LPCR. QEMU will poll it with cpu_synchronize_state().
It seems to preserve all the requirements.
>
> Alex
>
> --
Thanks for your guidance.
Cheers.
--
Greg
next prev parent reply other threads:[~2013-10-04 14:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20130925223118.GA2844@iris.ozlabs.ibm.com>
[not found] ` <20130927135930.10288.86526.stgit@nimbus>
[not found] ` <20130927164535.6dbeface@bahia.local>
[not found] ` <20131003162952.4cbf482c@bahia.local>
2013-10-04 11:43 ` [Qemu-devel] [RFC] QEMU/KVM PowerPC: virtio and guest endianness Alexander Graf
2013-10-04 13:43 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
[not found] ` <20131004115302.GA26884@iris.ozlabs.ibm.com>
[not found] ` <46DFE136-500E-4192-BB38-06333A6A0901@suse.de>
2013-10-04 14:08 ` Greg Kurz [this message]
2013-10-04 14:19 ` Alexander Graf
2013-10-07 15:23 ` [Qemu-devel] [PATCH 0/2] virtio: guest endianness support Greg Kurz
2013-10-07 15:23 ` [Qemu-devel] [PATCH 1/2] linux-headers: POWER8 partial update Greg Kurz
2013-10-07 15:23 ` [Qemu-devel] [PATCH 2/2] virtio: refresh registers at reset time Greg Kurz
2013-10-15 1:49 ` Rusty Russell
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=20131004160806.42c1d53d@bahia.local \
--to=gkurz@linux.vnet.ibm.com \
--cc=agraf@suse.de \
--cc=kvm-ppc@vger.kernel.org \
--cc=ldufour@linux.vnet.ibm.com \
--cc=mikey@neuling.org \
--cc=paulus@samba.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rusty@rustcorp.com.au \
/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).