WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Dump VMCS on Intel CPU

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Dump VMCS on Intel CPU
From: Mukesh Rathor <mukesh.rathor@xxxxxxxxxx>
Date: Fri, 05 Jun 2009 20:06:42 -0700
Delivery-date: Fri, 05 Jun 2009 20:07:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corp
Reply-to: mukesh.rathor@xxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>