From: David Gibson <david@gibson.dropbear.id.au>
To: Alexander Graf <agraf@suse.de>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/3] ppc: Correctly handle errors reading ibm, vmx and ibm, dfp properties
Date: Mon, 31 Oct 2011 11:01:18 +1100 [thread overview]
Message-ID: <20111031000118.GB9698@truffala.fritz.box> (raw)
In-Reply-To: <03D779A2-03B3-42B7-A36B-33D0DB41CAF3@suse.de>
On Sun, Oct 30, 2011 at 05:53:13PM +0100, Alexander Graf wrote:
>
> On 28.10.2011, at 03:56, David Gibson wrote:
>
> > kvmppc_read_int_cpu_dt() returns -1 on errors. However
> > kvmppc_host_cpu_def() assumes that it can use the return value
> > directly for setting the corresponding instruction support bits. This
> > will give invalid results when kvmppc_read_int_cpu_dt() returns -1
> > (i.e. 0xffffffff).
> >
> > In fact, it gets worse: the common case for -1 return values is when
> > the properties are simply not present. On some machines this means
> > the features are not available but in other cases it just means that
> > the firmware on this platform does not provide this information. So,
> > when there's an error reading the properties we really can't tell if
> > vmx or dfp is supported.
> >
> > Therefore, this patch checks for -1 return values and falls back to
> > qemu's built in table of CPU capabilities in that case.
> >
> > Reported-by: Nishanth Aravamudan <nacc@us.ibm.com>
> > Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
>
> I already have this patch in my tree, though with different
> author.
Yeah, I realised that not long after I sent it.
> I've added Nishanth as Reported-by on it now and you as
> Acked-by, if you're ok with that.
Ok, thanks.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2011-10-31 0:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-28 1:56 [Qemu-devel] [0/3] Bugfixes and updates for pseries David Gibson
2011-10-28 1:56 ` [Qemu-devel] [PATCH 1/3] ppc: Correctly handle errors reading ibm, vmx and ibm, dfp properties David Gibson
2011-10-30 16:53 ` Alexander Graf
2011-10-31 0:01 ` David Gibson [this message]
2011-10-28 1:56 ` [Qemu-devel] [PATCH 2/3] pseries: Allow writes to KVM accelerated TCE table David Gibson
2011-10-30 17:07 ` Alexander Graf
2011-10-28 1:56 ` [Qemu-devel] [PATCH 3/3] pseries: Add partial support for PCI David Gibson
2011-10-30 17:06 ` Alexander Graf
2011-10-31 1:48 ` [Qemu-devel] [Qemu-ppc] " David Gibson
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=20111031000118.GB9698@truffala.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=agraf@suse.de \
--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.