From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: Dump VMCS on Intel CPU Date: Fri, 05 Jun 2009 20:06:42 -0700 Message-ID: <4A29DD42.5080200@oracle.com> Reply-To: mukesh.rathor@oracle.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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