All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Tomas Papan <tomas.papan@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: kernel 3.9.x kvm hangs after seabios
Date: Wed, 8 May 2013 17:43:48 +0300	[thread overview]
Message-ID: <20130508144347.GE12349@redhat.com> (raw)
In-Reply-To: <CAMGsXDSA6ctqxz2xHLUw=JdeVdO-njQCkicHSSxndPpjdmXP-A@mail.gmail.com>

On Wed, May 08, 2013 at 03:50:47PM +0200, Tomas Papan wrote:
> Ok, the cpu stays at 0% when it hangs, there is only one 100% cpu peak
> which happens when the vm starts ( I think this is quite normal).
> 
> However I run following command, and I stop it right when it hangs:
> anakin trace2 # virsh start vm-jack; pid=`virsh qemu-monitor-command
> vm-jack --hmp info cpus | grep '\*' | awk '{print $5}' | cut -d\=
> -f2`; trace-cmd record -P $pid -p function
> 
> if anyone is interested it produces a 1.6 GB file (the compressed
> version can be found here: http://papan.sk/share/trace2.dat.tar.gz
> (150 MB))
> 
Thanks! Can you test the patch below:

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 6667042..0af1807 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5197,6 +5197,12 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu)
 			return 0;
 		}
 
+		if (vcpu->arch.halt_request) {
+			vcpu->arch.halt_request = 0;
+			ret = kvm_emulate_halt(vcpu);
+			goto out;
+		}
+
 		if (signal_pending(current))
 			goto out;
 		if (need_resched())
--
			Gleb.

  reply	other threads:[~2013-05-08 14:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-08 11:22 kernel 3.9.x kvm hangs after seabios Tomas Papan
2013-05-08 11:55 ` Gleb Natapov
2013-05-08 12:08   ` Tomas Papan
2013-05-08 12:20     ` Gleb Natapov
2013-05-08 12:51       ` Tomas Papan
2013-05-08 13:29         ` Gleb Natapov
2013-05-08 13:50           ` Tomas Papan
2013-05-08 14:43             ` Gleb Natapov [this message]
2013-05-08 14:52               ` Tomas Papan
2013-05-08 14:52                 ` Tomas Papan
2013-05-08 14:54                   ` Gleb Natapov
2013-05-08 12:59     ` Daniel P. Berrange
2013-05-08 13:04       ` Tomas Papan

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=20130508144347.GE12349@redhat.com \
    --to=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=tomas.papan@gmail.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 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.