From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: xen-devel@lists.xensource.com
Subject: Dump VMCS on Intel CPU
Date: Fri, 05 Jun 2009 20:06:42 -0700 [thread overview]
Message-ID: <4A29DD42.5080200@oracle.com> (raw)
Hi,
I'd like to dump VMCS for all HVM VCPUs from a cpu that is running kdb. While
this CPU is doing kdb commands, all other CPUs are spinning disabled in kdb
function.
On AMD, it was simple by calling svm_dump_vmcb() by passing vmcb from
each vcpu struct. Looking at vmcs.c, I see quite a bit of mumbo-jumbo in
terms of setting context, even IPI other CPUs, etc. That doesn't work
for me. So the question is, is there any reason followig won't work?
for each hvm vcpu {
__vmptrld(virt_to_maddr(vp->arch.hvm_vmx.vmcs));
vmcs_dump_vcpu();
}
if ( is_hvm_vcpu(current) )
__vmptrld(virt_to_maddr(current->arch.hvm_vmx.vmcs));
Seems to work ok, but I want to make sure.
thanks,
Mukesh
next reply other threads:[~2009-06-06 3:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-06 3:06 Mukesh Rathor [this message]
2009-06-06 6:23 ` Dump VMCS on Intel CPU Keir Fraser
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=4A29DD42.5080200@oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=xen-devel@lists.xensource.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.