public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Stuart Yoder <stuart.yoder@freescale.com>
Cc: <agraf@suse.de>, <kvm-ppc@vger.kernel.org>, <kvm@vger.kernel.org>
Subject: Re: [PATCH v8 2/4] KVM: PPC: epapr: Add idle hcall support for host
Date: Wed, 7 Mar 2012 16:37:17 -0600	[thread overview]
Message-ID: <4F57E31D.9010908@freescale.com> (raw)
In-Reply-To: <1331159500-15257-3-git-send-email-stuart.yoder@freescale.com>

On 03/07/2012 04:31 PM, Stuart Yoder wrote:
> @@ -888,6 +891,10 @@ out:
>  
>  static int kvm_vm_ioctl_get_pvinfo(struct kvm_ppc_pvinfo *pvinfo)
>  {
> +#ifdef CONFIG_KVM_BOOKE_HV
> +	u32 inst_sc1 = 0x44000022;
> +	pvinfo->hcall[0] = inst_sc1;
> +#else
>  	u32 inst_lis = 0x3c000000;
>  	u32 inst_ori = 0x60000000;
>  	u32 inst_nop = 0x60000000;
> @@ -907,6 +914,9 @@ static int kvm_vm_ioctl_get_pvinfo(struct kvm_ppc_pvinfo *pvinfo)
>  	pvinfo->hcall[1] = inst_ori | (KVM_SC_MAGIC_R0 & inst_imm_mask);
>  	pvinfo->hcall[2] = inst_sc;
>  	pvinfo->hcall[3] = inst_nop;
> +#endif

Need to pad the rest of the array with nops.

-Scott

  reply	other threads:[~2012-03-07 22:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-07 22:31 [PATCH v8 0/4] KVM: PPC: Add ePAPR idle hcall support Stuart Yoder
2012-03-07 22:31 ` [PATCH v8 1/4] KVM: PPC: epapr: Factor out the epapr init Stuart Yoder
2012-03-07 22:31 ` [PATCH v8 2/4] KVM: PPC: epapr: Add idle hcall support for host Stuart Yoder
2012-03-07 22:37   ` Scott Wood [this message]
2012-03-07 22:31 ` [PATCH 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest Stuart Yoder
2012-03-07 22:31 ` [PATCH 4/4] KVM: PPC: epapr: Update other hypercall invoking Stuart Yoder

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=4F57E31D.9010908@freescale.com \
    --to=scottwood@freescale.com \
    --cc=agraf@suse.de \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=stuart.yoder@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox