qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bharata B Rao <bharata@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: Bharata B Rao <bharata@linux.vnet.ibm.com>,
	qemu-ppc@nongnu.org, mdroth@linux.vnet.ibm.com,
	david@gibson.dropbear.id.au
Subject: [Qemu-devel] [PATCH v1 0/2] Handle KVM_PPC_ALLOCATE_HTAB ioctl failure
Date: Tue, 10 Nov 2015 10:54:52 +0530	[thread overview]
Message-ID: <1447133094-32676-1-git-send-email-bharata@linux.vnet.ibm.com> (raw)

KVM_PPC_ALLOCATE_HTAB ioctl can now return errors and handle that
correctly in QEMU.

Also fix !CONFIG_KVM implementation of kvmppc_reset_htab() to return
0 instead of -1.

Changes in v1
------------
- Add a patch to fix !CONFIG_KVM implementation of kvmppc_reset_htab()
so that make check passes for ppc64 target on x86 host.
- Explicitly check for shift < 0 error condition in spapr_alloc/reset_htab.

v0: https://lists.gnu.org/archive/html/qemu-ppc/2015-11/msg00012.html

Bharata B Rao (2):
  ppc: Let kvmppc_reset_htab() return 0 for !CONFIG_KVM
  spapr: Handle failure of KVM_PPC_ALLOCATE_HTAB ioctl

 hw/ppc/spapr.c       | 20 ++++++++++++++++----
 target-ppc/kvm_ppc.h |  2 +-
 2 files changed, 17 insertions(+), 5 deletions(-)

-- 
2.1.0

             reply	other threads:[~2015-11-10  5:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10  5:24 Bharata B Rao [this message]
2015-11-10  5:24 ` [Qemu-devel] [PATCH v1 1/2] ppc: Let kvmppc_reset_htab() return 0 for !CONFIG_KVM Bharata B Rao
2015-11-10  5:24 ` [Qemu-devel] [PATCH v1 2/2] spapr: Handle failure of KVM_PPC_ALLOCATE_HTAB ioctl Bharata B Rao
2015-11-10 14:38   ` Michael Roth
2015-11-11  0:07     ` 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=1447133094-32676-1-git-send-email-bharata@linux.vnet.ibm.com \
    --to=bharata@linux.vnet.ibm.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=mdroth@linux.vnet.ibm.com \
    --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 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).