From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] monitor: add PPC BookE SPRs
Date: Tue, 3 May 2011 10:28:33 -0500 [thread overview]
Message-ID: <20110503102833.71153d2d@schlenkerla.am.freescale.net> (raw)
In-Reply-To: <EC7E3BD7-0DCD-43A5-8689-0C1761406321@suse.de>
On Tue, 3 May 2011 13:02:40 +0200
Alexander Graf <agraf@suse.de> wrote:
>
> On 30.04.2011, at 00:10, Scott Wood wrote:
>
> > Read them via KVM_GET_SREGS in kvm_arch_get_registers(),
> > and display them in "info registers".
> >
> > Also get CR and PID from the existing KVM_GET_REGS.
> >
> > Signed-off-by: Scott Wood <scottwood@freescale.com>
> > ---
> > v2: fix a couple style oversights, and cache kvm caps as requested
>
> In fact, I'll just squash this patch with yours, if that's ok for you:
OK.
> diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
> index a4ec4bc..5a1b6cb 100644
> --- a/target-ppc/kvm.c
> +++ b/target-ppc/kvm.c
> @@ -45,7 +45,9 @@ const KVMCapabilityInfo kvm_arch_required_capabilities[] = {
> static int cap_interrupt_unset = false;
> static int cap_interrupt_level = false;
> static int cap_segstate;
> +#ifdef KVM_CAP_PPC_BOOKE_SREGS
> static int cap_booke_sregs;
> +#endif
>
> /* XXX We have a race condition where we actually have a level triggered
> * interrupt, but the infrastructure can't expose that yet, so the guest
> @@ -94,13 +96,9 @@ static int kvm_arch_sync_sregs(CPUState *cenv)
> if (cenv->excp_model == POWERPC_EXCP_BOOKE) {
> return 0;
> } else {
> -#ifdef KVM_CAP_PPC_SEGSTATE
> if (!cap_segstate) {
> return 0;
> }
> -#else
> - return 0;
> -#endif
So there are no headers out there that we need to support building with
that don't have KVM_CAP_PPC_SEGSTATE?
-Scott
next prev parent reply other threads:[~2011-05-03 15:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-29 22:10 [Qemu-devel] [PATCH v2] monitor: add PPC BookE SPRs Scott Wood
2011-05-03 10:42 ` Alexander Graf
2011-05-03 10:57 ` Alexander Graf
2011-05-03 11:02 ` Alexander Graf
2011-05-03 15:28 ` Scott Wood [this message]
2011-05-03 15:40 ` Alexander Graf
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=20110503102833.71153d2d@schlenkerla.am.freescale.net \
--to=scottwood@freescale.com \
--cc=agraf@suse.de \
--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 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).