qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: thomas knych <thomaswk@google.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, thomas knych <thomaswk@google.com>,
	gleb@redhat.com, digit@google.com
Subject: [Qemu-devel] [PATCH 0/1] KVM: Retry KVM_CREATE_VM on EINTR or EAGAIN
Date: Thu,  9 Jan 2014 13:14:22 -0800	[thread overview]
Message-ID: <1389302063-2432-1-git-send-email-thomaswk@google.com> (raw)


Hi -

I've encountered occassional instability on qemu/kvm startup when the host is heavily loaded and already managing many guest OS's.

In this cases I've seen the KVM_CREATE_VM ioctl  return EINTR or EAGAIN and thats gets treated as fatal.

Adding a retry in these cases has greatly improved our startup reliablity.

I've submitted this patch to Android's qemu source tree and it seemed useful to push it upstream as well.


Thanks,
-Tom

thomas knych (1):
  KVM: Retry KVM_CREATE_VM on EINTR or EAGAIN

 kvm-all.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

-- 
1.8.5.1

             reply	other threads:[~2014-01-09 21:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-09 21:14 thomas knych [this message]
2014-01-09 21:14 ` [Qemu-devel] [PATCH 1/1] KVM: Retry KVM_CREATE_VM on EINTR or EAGAIN thomas knych
2014-01-10 13:01   ` Paolo Bonzini
2014-01-10 22:15     ` Tom Knych
2014-01-13 11:16       ` Paolo Bonzini
2014-01-14 18:56         ` Andrea Arcangeli
2014-01-15  2:09           ` Tom Knych
2014-01-15  7:47             ` Paolo Bonzini

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=1389302063-2432-1-git-send-email-thomaswk@google.com \
    --to=thomaswk@google.com \
    --cc=digit@google.com \
    --cc=gleb@redhat.com \
    --cc=pbonzini@redhat.com \
    --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).