about page fault handler?

2010-08-16 Thread
hi all,  i am reading kvm code , the folllowing is my understanding. 1, see if guest page table is not mapped , inject fault to the guest. 2, see if gpte dirty is set ,in order to synchronize the pte dirty with spte 3, if not , see if spte it not mapped or write protection ,to handler it. i do

about kvm_memory_region

2010-07-26 Thread
in qemu, function get_free_slot() allocates a lot value for a vm and tha value is transfered to kernel for kvm-memslots[i] where i represents the slot value. what does the relationship between global variable slot_info slots[] in qemu and each vm struct kvm in kernel? what does slot stand for?

about memory protection.

2010-07-25 Thread
i want to set some page of guest wrie protection so that the guest can not write to this page any more . so i set the corresponding page write protection. but if guest modify cr0 to clear wp bit. what could i do to avoid this ? -- To unsubscribe from this list: send the line unsubscribe kvm in

about memory

2010-07-22 Thread
i am new in virtualization and kvm. i get some questions ,hope u will help me . when qemu allocates memory for a vm , function get_free_slot is called to get free slot for a vm from global variable slots. so i understand that all vms share slots , on the other words, each vm get a slot_info in

does sidt get correct start address of IDT in guest?

2010-07-20 Thread
 in guest os , a module with sidt instruction was execution to get start address of IDT.does this return the correct address of IDT in guest OS? thanks. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at

about schedule mechanism

2010-07-18 Thread
how kvm schedule the guest opetating systems? what is the agorithem?thanks -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html