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] Get IDT from virtual machine

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Get IDT from virtual machine
From: Matthew Donovan <matthew@xxxxxxxxxxxxxx>
Date: Thu, 31 Jan 2008 16:31:44 -0500
Delivery-date: Thu, 31 Jan 2008 13:27:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I'm trying to retrieve and print the interrupt descriptor table of a guest
OS but every address is coming out 0x00000000.

Here's what I'm doing:

    vcpu_guest_context_t ctx;
    int i;

    int res = xc_vcpu_getcontext (xai->xc_handle, xai->domain_id, 0, &ctx);
    if (res < 0) {
        fprintf (stderr, "xc_vcpu_getcontext failed!\n");
        return;
    }   

    for (i = 0 ; i < 256 ; ++i) {
        printf ("Interrupt %d: Address 0x%08x\n", 
                i,
                ctx.trap_ctxt[i].address);   
    }


I'm using Xen 3.1.2 on Fedora Core 8.  The guest OS's have been XP Pro and
Vista Ultimate, though I assume that part doesn't matter since the IDT is a
processor structure.

Any help is greatly appreciated.
-matthew

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Get IDT from virtual machine, Matthew Donovan <=