[Xen-devel] get page table entry from virtual address

2015-06-09 Thread HANNAS YAYA Issa
Hi all when there is a page fault the mmu stroes the virtual address that made the page fault in the cr2 register right? In xen this address is found in page fault handling routine do_page_fault in arch/x86/traps.c addr = read_cr2(). I want to get the page table entry associated with this virtu

[Xen-devel] toggles user/supervisor privilege level on page entry

2015-06-04 Thread HANNAS YAYA Issa
Hi I want to toggle user/sypervisor priviledge bit in page table entry associated to a given this page. But I my code does'nt work. I have plenty buggs. here is the method used to set access to hypervisor level void remove_access(l1_pgentry_t *pl1e){ l1_pgentry_t ol1e; l1_pgentry_t nl1e; unsign

[Xen-devel] Linux kernel version for xen hypervisor 4.2.0

2015-05-26 Thread HANNAS YAYA Issa
Hi I compile and install linux kernel 3.4 but when booting I don't see this kernel in the grub submenu of xen version 4.2.0. Does it means that there is a minimum version of linux kernel that xen 4.2.0 can supprort? Thanks Hannas ___ Xen-devel mailin

[Xen-devel] Xen block driver: Indirect request

2015-05-21 Thread HANNAS YAYA Issa
Hello I am working on xen front|backend driver. When I run io operations sometime the request type is indirect request sometimes it is read|write request. I don't know what differnces exists beetween these types of operations. Can some body explain me? Thanks HANNAS _

Re: [Xen-devel] How to turn off persistent grant in xen

2015-05-19 Thread HANNAS YAYA Issa
Got it. Thank you Hannas On Tue, 19 May 2015 17:41:41 +0200, Roger Pau Monné wrote: El 19/05/15 a les 16.17, HANNAS YAYA Issa ha escrit: Hi I want to disable persistent grant in xen. I tried to use xenbus to disable it. What I did is modifying this line in drivers/block/xenblkback/xenbus.c

[Xen-devel] How to turn off persistent grant in xen

2015-05-19 Thread HANNAS YAYA Issa
Hi I want to disable persistent grant in xen. I tried to use xenbus to disable it. What I did is modifying this line in drivers/block/xenblkback/xenbus.c: 791 err = xenbus_printf(xbt, dev->nodename, "feature-persistent", "%u", 1); and put this 791 err = xenbus_printf(xbt, dev->nodename, "

Re: [Xen-devel] Intercepting page access

2015-04-20 Thread HANNAS YAYA Issa
Hi I really really need help. I continue trying to make it work but nothing change. Please I need help :( On Sat, 18 Apr 2015 19:25:52 +0200, HANNAS YAYA Issa wrote: Hi I am working in a research project I want to incercept pages access by guest virtual machine. My approach is setting

[Xen-devel] Intercepting page access

2015-04-18 Thread HANNAS YAYA Issa
Hi I am working in a research project I want to incercept pages access by guest virtual machine. My approach is setting higher priviledge in pages by setting changing the user/sypervisor priviledge bit in page table entry associated to this page. Here is the piece of code used void remove_acc

[Xen-devel] machine frame number: max and min value

2015-04-12 Thread HANNAS YAYA Issa
Hi I want to get the maximum and the minimum value of machine frame number. I know that the variable total_pages contains the value of the total number of the pages but I wonder why the machine frame number is not between 0 and total_pages Thank you

[Xen-devel] remove entry in shadow table

2015-04-06 Thread HANNAS YAYA Issa
Hi I want to remove entry of a given page in the shadow page table so that when the next time the guest access to the page there is page fault. Here is what I try to do: 1. I have a timer which wake up every 30 seconds and remove entry in the shadow by calling sh_remove_all_mappings(d->vcpu[0

Re: [Xen-devel] Implementing working set tracker in xen

2015-04-03 Thread HANNAS YAYA Issa
Thank you a lot Tim.Your Method which consist of using shadow page table help me. However when I use the method shadow_blow_tables() I don't think it makes all page unavailable. because the the number of page fault (I get it from sh_page_fault) does not seem to increase. when shadow_blow_table

[Xen-devel] about cr3 register

2015-04-01 Thread HANNAS YAYA Issa
Hi I am working on memory management in xen. I encounter a problem that I hope you can help me to solve it. I modified the struct mmu_update in xen and linux source code. I add two fields cr3 and addr which respectively contains the current cr3 value and the current address of the process assoc

[Xen-devel] about cr3 register

2015-04-01 Thread HANNAS YAYA Issa
Hi I am working on memory management in xen. I encounter a problem that I hope you can help me to solve it. I modified the struct mmu_update in xen and linux source code. I add two fields cr3 and addr which respectively contains the current cr3 value __

Re: [Xen-devel] machine address

2015-04-01 Thread HANNAS YAYA Issa
Ok. thank you On Tue, 31 Mar 2015 10:26:06 +0100, George Dunlap wrote: On Mon, Mar 30, 2015 at 3:00 PM, HANNAS YAYA Issa wrote: Hi When there is a page fault the trapper of the page fault in the hypervisor is do_page_fault in xen/arch/x86/traps.c right? That's for PV guests. Fo

[Xen-devel] machine address

2015-03-30 Thread HANNAS YAYA Issa
Hi When there is a page fault the trapper of the page fault in the hypervisor is do_page_fault in xen/arch/x86/traps.c right? in this funcion i found a method read_cr2() which return the virtual adrress of the page who generate the page fault. My question is : is it possible to get the machine a

[Xen-devel] mark guest page abscent

2015-03-22 Thread HANNAS YAYA Issa
Hi Is it possible to mark guest page table entry abscent (I mean clear the Presence bit) from the hypervisor. If yes How can this be done Thank you ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] random in xen code

2015-03-22 Thread HANNAS YAYA Issa
Hello Is it possible to generate a random number in xen source code? ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] swap out guest physical page

2015-03-20 Thread HANNAS YAYA Issa
Hi Is it possible to swap out guest physical page from hypervisor in xen ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] xe timer

2015-03-19 Thread HANNAS YAYA Issa
Hello I want to implement in xen hypervisor but I don't know how to do it. I search in google but I do not found how to use the xen timer (not linux). when I compile xen the timer run only once. here is my code. static void timer_handler(void *unused) { printk("hello world in timer\n")

Re: [Xen-devel] xc: error: EPT not supported for this guest: Internal error

2015-03-19 Thread HANNAS YAYA Issa
On Thu, 19 Mar 2015 16:35:43 +, Ian Campbell wrote: On Thu, 2015-03-19 at 17:04 +0100, HANNAS YAYA Issa wrote: Please ask user configuration questions on the xen-users list, this list is for development topics. Perhaps also check your favourite search engine before doing so. Ian. Hi

[Xen-devel] xc: error: EPT not supported for this guest: Internal error

2015-03-19 Thread HANNAS YAYA Issa
Hi when I run xen-access test (tools/tests/xen-access) I got the following error xc: error: EPT not supported for this guest: Internal error Please can you explain me how to enable EPT in guest Thanks Hannas ___ Xen-devel mailing list Xen-devel@lists

[Xen-devel] Implementing working set tracker in xen

2015-03-18 Thread HANNAS YAYA Issa
Hello Today I'm working on virtual machines working set size tracking in xen hypervisor. I follow the vmware approch I read in this article: https://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CCEQFjAA&url=https%3A%2F%2Fwww.usenix.org%2Fevents%2Fosdi02%2Ftech%2Fwaldspurger

[Xen-devel] Fwd: difference between physical address, machine address, physical frame number and machine frame number

2015-03-18 Thread HANNAS YAYA Issa
Hello guys. I start to develop in xen hypervisor no so long. I work on memory. in the source codes I read maddr, paddr, pfn and mdfn. please can someone explain me the differences between these concepts in xen hypervisor. Thank you ___ Xen-devel mai

[Xen-devel] Process context switch handling by xen

2015-03-16 Thread HANNAS YAYA Issa
Hello I want to know when there is context switch between processes in guest the xen hypervisor can handle this switch. Is there any possibility to get this context switch from hypervisor? ___ Xen-devel mailing list Xen-devel@lists.xen.org http://list