All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: Alexander Graf <agraf@suse.de>, qemu-devel@nongnu.org
Cc: Paul Mackerras <paulus@samba.org>,
	qemu-ppc@nongnu.org, David Gibson <david@gibson.dropbear.id.au>
Subject: Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it
Date: Tue, 15 Mar 2016 21:30:25 +1100	[thread overview]
Message-ID: <56E7E441.1090104@ozlabs.ru> (raw)
In-Reply-To: <56E7E1C5.1040409@suse.de>

On 03/15/2016 09:19 PM, Alexander Graf wrote:
>
>
> On 15.03.16 06:51, Alexey Kardashevskiy wrote:
>> ePAPR defines "hcall-instructions" device-tree property which contains
>> code to call hypercalls in ePAPR paravirtualized guests. However this
>> property is also present for pseries guests where it does not make sense,
>> even though it contains dummy code which simply fails.
>>
>> Instead of maintaining the property (which used to be BE only; then was
>> fixed to be endian-agnostic) and confusing the guest (which might think
>> there is ePAPR host while there is none), this simply does not
>> the property to the device tree if the host kernel does not implement it.
>>
>> In order to tell the machine code if the host kernel supports
>> KVM_CAP_PPC_GET_PVINFO, this changes kvmppc_get_hypercall() to return 1
>> if the host kernel does not implement it (which is HV KVM case).
>>
>> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
>> ---
>>
>>
>> Alexander,
>>
>> We just got a bug report that LE guests would not boot under quite old QEMU
>> and we (powerkvm) wonder if it makes sense to backport endian-agnostic
>> hypercall code to older QEMU or it is simpler/more correct
>> not to have epapr-hypercall property in the tree.
>
> Without the property you lose KVM hypercalls, so mostly some PR
> speedups.

Like what? I did grep and could not spot many for pseries, only 
KVM_HC_FEATURES and KVM_HC_PPC_MAP_MAGIC_PAGE. I am suggesting here to hide 
this property from "pseries" guests only.


> For HV KVM, I don't think it makes a lot of sense to expose
> KVM specific hypercalls, but I'm not sure it's a great idea to block the
> path. With the infrastructure in place, we can at least add non-sPAPR PV
> if we want to.

I am not suggesting removing it, only advertise it if the KVM supports it...




-- 
Alexey

      reply	other threads:[~2016-03-15 10:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15  5:51 [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it Alexey Kardashevskiy
2016-03-15  8:18 ` Thomas Huth
2016-03-15  9:42   ` Alexey Kardashevskiy
2016-03-15 10:41     ` David Gibson
2016-03-15 11:32     ` Thomas Huth
2016-03-16  2:43       ` Alexey Kardashevskiy
2016-03-16  6:04         ` Thomas Huth
2016-03-17  2:04           ` Alexey Kardashevskiy
2016-03-15  9:59 ` David Gibson
2016-03-15 10:30   ` Alexander Graf
2016-03-15 10:31   ` Alexey Kardashevskiy
2016-03-15 10:19 ` Alexander Graf
2016-03-15 10:30   ` Alexey Kardashevskiy [this message]

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=56E7E441.1090104@ozlabs.ru \
    --to=aik@ozlabs.ru \
    --cc=agraf@suse.de \
    --cc=david@gibson.dropbear.id.au \
    --cc=paulus@samba.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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.