[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Get IDT of virtual machine


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Matthew Donovan <matthew@xxxxxxxxxxxxxx>
  • Date: Thu, 31 Jan 2008 10:51:14 -0500
  • Delivery-date: Thu, 31 Jan 2008 07:46:33 -0800
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

Hi,

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-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.