public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Avi Kivity <avi-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: dzickus-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	luto-3s7WtUTddSA@public.gmane.org,
	mtosatti-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	joerg.roedel-5C7GfCeVMHo@public.gmane.org,
	gregkh-l3A5Bk7waGM@public.gmane.org,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org,
	HATAYAMA Daisuke
	<d.hatayama-+CUm20s59erQFUHtdCDX3A@public.gmane.org>,
	zhangyanfei-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org,
	ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org,
	ludwig.nussel-l3A5Bk7waGM@public.gmane.org
Subject: Re: [PATCH 0/4] Export offsets of VMCS fields as note information for kdump
Date: Sun, 22 Apr 2012 13:33:40 +0300	[thread overview]
Message-ID: <20120422103340.GE12768@redhat.com> (raw)
In-Reply-To: <4F93D64B.50803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On Sun, Apr 22, 2012 at 12:58:35PM +0300, Avi Kivity wrote:
> On 04/20/2012 01:11 PM, HATAYAMA Daisuke wrote:
> > From: Avi Kivity <avi-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > Subject: Re: [PATCH 0/4] Export offsets of VMCS fields as note information for kdump
> > Date: Thu, 19 Apr 2012 15:08:00 +0300
> >
> > > On 04/19/2012 03:01 PM, HATAYAMA Daisuke wrote:
> > >> >> It would be not helpful for the qemu crash case you are concerned
> > >> >> about. We want to use the guest state data to look into guest
> > >> >> machine's image in the crasshed qemu.
> > >> > 
> > >> > Why?
> > >> > 
> > >>
> > >> It seems natural to check the situation from guest machine's side when
> > >> qemu crashs. Suppose a service is running on the guest machine, and
> > >> then the qemu crash. Then, we may need to know the details of the
> > >> progress of the service if it's important. What has been successfully
> > >> done, and what has not yet.
> > > 
> > > How can a service on the guest be related to a qemu crash?  And how
> > > would guest registers help?
> >
> > I don't mean the service is related to qemu's crash. When qemu
> > crashes, then the guest machine also crashes (although it doesn't
> > notice anything). What I'm interested in here is guest machine side,
> > not qemu side. I want to debug guest machine, not qemu.
> 
> There is no bug in the guest, so why debug it?
> 
> It's similar to pulling out the power from a server and wanting to
> inspect the registers and memory at the time the cpu died.  Even if it's
> possible, you don't gain any information from it.
> 
> > > 
> > > You can extract the list of running processes from a qemu crash dump
> > > without looking at guest registers.  And most vcpus are running
> > > asynchronously to qemu, so their register contents is irrelevant (if a
> > > vcpu is running synchronously with qemu - it just exited to qemu and is
> > > waiting for a response - then you'd see the details in qemu's call stack).
> > > 
> >
> > Just as you say, we can refer to guest machine's memory without guest
> > registers.
> >
> > The definitely necessary data in vmcs are RSP and RIP, which are not
> > saved in anywhare of kvm module. The two registers are needed for back
> > tracing to determine what processsing is being done on the guest
> > machine at qemu crash.
> 
> What I don't understand is why you are interested in the guest machine
> at all, if it was qemu that crashed.
> 
It would be interesting to extract enough information from the core to be
able to restart the guest from the point where qemu crashed, but
decoding VMCS is not enough for that.

--
			Gleb.

  parent reply	other threads:[~2012-04-22 10:33 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11  1:39 [PATCH 0/4] Export offsets of VMCS fields as note information for kdump zhangyanfei
2012-04-11  1:49 ` [PATCH 1/4] x86: Add helper variables and functions to hold VMCSINFO zhangyanfei
2012-04-11  1:50 ` [PATCH 2/4] KVM: VMX: Add functions to fill VMCSINFO zhangyanfei
     [not found]   ` <4F84E365.10201-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-04-11  8:48     ` Avi Kivity
     [not found]       ` <4F85454E.6020201-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-11 10:34         ` zhangyanfei
     [not found]           ` <4F855E3C.9010003-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-04-11 11:41             ` Avi Kivity
2012-04-11  8:56 ` [PATCH 0/4] Export offsets of VMCS fields as note information for kdump Avi Kivity
     [not found]   ` <4F85472A.4080009-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-11 10:12     ` zhangyanfei
2012-04-11 11:15       ` Avi Kivity
     [not found] ` <4F84E0DF.8040206-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-04-11  1:57   ` [PATCH 3/4] ksysfs: export VMCSINFO via sysfs zhangyanfei
     [not found]     ` <4F84E50E.2090008-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-04-12 23:00       ` Greg KH
2012-04-17  1:52         ` zhangyanfei
2012-04-17  2:30           ` Greg KH
2012-04-11  1:58   ` [PATCH 4/4] kexec: Add crash_save_vmcsinfo to update VMCSINFO zhangyanfei
2012-04-11 10:21   ` [PATCH 0/4] Export offsets of VMCS fields as note information for kdump Joerg Roedel
     [not found]     ` <20120411102136.GG2428-5C7GfCeVMHo@public.gmane.org>
2012-04-11 10:49       ` Avi Kivity
2012-04-11 10:59       ` zhangyanfei
2012-04-17  7:44   ` Avi Kivity
     [not found]     ` <4F8D1F46.3090901-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-17 10:51       ` zhangyanfei
     [not found]         ` <4F8D4B4C.8070705-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-04-17 10:59           ` Avi Kivity
     [not found]             ` <4F8D4D1C.4010400-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-17 11:25               ` Wen Congyang
     [not found]                 ` <4F8D530C.3050908-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-04-17 13:04                   ` Avi Kivity
2012-04-18  7:30               ` zhangyanfei
     [not found]                 ` <4F8E6DA5.8030503-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-04-18  8:24                   ` Avi Kivity
     [not found]                     ` <4F8E7A5B.5030904-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-18  9:49                       ` zhangyanfei
     [not found]                         ` <4F8E8E3D.8040707-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-04-18 11:56                           ` Avi Kivity
     [not found]                             ` <4F8EABF7.805-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-19 10:36                               ` HATAYAMA Daisuke
     [not found]                                 ` <20120419.193640.59653378.d.hatayama-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-04-19 10:42                                   ` Avi Kivity
     [not found]                                     ` <4F8FEC22.400-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-19 11:27                                       ` HATAYAMA Daisuke
     [not found]                                         ` <20120419.202707.276752866.d.hatayama-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-04-19 11:31                                           ` Avi Kivity
     [not found]                                             ` <4F8FF7AC.1060309-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-19 12:01                                               ` HATAYAMA Daisuke
     [not found]                                                 ` <20120419.210119.246504497.d.hatayama-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-04-19 12:08                                                   ` Avi Kivity
     [not found]                                                     ` <4F900020.5010702-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-20 10:11                                                       ` HATAYAMA Daisuke
2012-04-22  9:58                                                         ` Avi Kivity
     [not found]                                                           ` <4F93D64B.50803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-22 10:33                                                             ` Gleb Natapov [this message]
     [not found]                                                               ` <20120422103340.GE12768-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-22 10:57                                                                 ` Avi Kivity
2012-04-17 16:49     ` Anthony Liguori
     [not found]       ` <4F8D9F20.9050507-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2012-04-18 12:13         ` Avi Kivity
2012-04-18 13:47           ` Nadav Har'El
     [not found]             ` <20120418134743.GA25786-QeE623+hzFJ/hwrKWqB9+zWi1Rwp9Q0N+oGz7xIJsNs@public.gmane.org>
2012-04-18 14:06               ` Avi Kivity

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=20120422103340.GE12768@redhat.com \
    --to=gleb-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=avi-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=d.hatayama-+CUm20s59erQFUHtdCDX3A@public.gmane.org \
    --cc=dzickus-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
    --cc=gregkh-l3A5Bk7waGM@public.gmane.org \
    --cc=joerg.roedel-5C7GfCeVMHo@public.gmane.org \
    --cc=kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ludwig.nussel-l3A5Bk7waGM@public.gmane.org \
    --cc=luto-3s7WtUTddSA@public.gmane.org \
    --cc=mtosatti-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org \
    --cc=zhangyanfei-BthXqXjhjHXQFUHtdCDX3A@public.gmane.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