|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: How to intercept interrupts from guest domains
Petersson, Mats wrote: -----Original Message-----From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mads BergdalSent: 21 September 2006 12:46 To: xen-devel@xxxxxxxxxxxxxxxxxxxSubject: [Xen-devel] Re: How to intercept interrupts from guest domainsKeir Fraser wrote:On 19/9/06 10:52, "Mads Bergdal" <mbergdal@xxxxxxxxx> wrote:I am writing my master thesis on virtualization withXen. I am trying to Is the target address you're after a physical or a virtual address? This is just an overview of how paging (and shadow paging) works... There's more to it than the above couple of paragraphs, as you canimagine.-- MatsHope I am not wasting your time... Mads _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel Thanks a lot! Well clearly this is a bit more complicated than I first excepted.... I'm only doing this for single 32-bit processors....I guess I'm primarily interested in the virtual addresses. (I think...). If my 'supervisor' program first finds out which page the guest kernels syscall table (for instance...) maps to, the I would only need the hypervisor to send an message if this page is being accessed and let the 'supervisor' program take care of the rest? The most promising thing to do then is to:- find out which page my 'untouchable' address is on and mark this page as non-writable. (how?) Or are all pages marked as non-writable by Xen as default? - This way the guest will always get a page fault, and trap to Xen. (Where in Xen is this trap handled?) -I maintain (in Xen) an array of pages that is not supposed to be written to, and compare this to the page the guest kernel wants to write to. -If the page is in the array I send a message (how?) to my program saying that the guest is trying to access a marked page. -My program then decides if the guest kernel is allowed to proceed, and responds to the Hypervisor (how?) Does this sound doable?If so, where in the xen code is the xen page-fault-handling routine? And how can I send messages to and from the Hypervisor? Mads _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |