Hi All,
AM trying to fetch the IDT(Interrupt Descriptor Table) Base address using
the following program in domU PV Guest.
#include<linux/init.h>
#include<linux/kernel.h>
#include<linix/module.h>
MODULE_LICENSE("GPL");
static inline void *sidt(void)
{
unsigned int ptr[2];
__asm__ volatile ("sidt (%0)": : "a"(((char *) ptr)+2));
retrun (void *) ptr[1];
}
static int __init hello_init(void)
{
printk(KERN_INFO "%p",sidt());
printk(KERN_INFO "Hello World!!!\n");
return 0;
}
static void __exit hello_cleanup(void)
{
printk(KERN_INFO "Cleaning up the module!!!\n");
}
module_init(hello_init);
module_exit(hello_cleanup);
On every insmod of this module, its displaying different base address. But
limit remains the same(i.e., 255)
Is this usual??? Or Is my program logic wrong???
Regards,
Lakshman Jayaraju
--
View this message in context:
http://xen.1045712.n5.nabble.com/Does-IDTR-value-changes-in-Guest-Domians-tp5714370.html
Sent from the Xen - User mailing list archive at Nabble.com.