Re: LEAVE emulation infinite loop

2011-04-25 Thread Matteo Signorini
 case 0xcb:              /* ret far */                rc = emulate_ret_far(ctxt, ops);                break; 2011/4/24 Avi Kivity > > On 04/24/2011 10:08 AM, Matteo Signorini wrote: >> >> Hello everybody, >> I have a problem with an opcode emulation not yet emulated in kvm-km

LEAVE emulation infinite loop

2011-04-24 Thread Matteo Signorini
Hello everybody, I have a problem with an opcode emulation not yet emulated in kvm-kmod 2.6.38-rc7. The opcode is the "LEAVE" that as Intel Manual says: "Set RSP to RBP, then pop RBP" The problem is that despite to the fact that the opcode of the leave (C9) is correctly fetched and decoded, it fa

ms_sysenter_eip zero value

2011-01-23 Thread Matteo Signorini
Hi, I'm having some problems understanding the sysenter instruction. As far as I know, in order to successfully call the sysenter instruction, MSR_IA32_SYSENTER_CS and MSR_IA32_SYSENTER_EIP registers have to be correctly set. So I printed the value of such registers while the VM was running but t

Restart problem after sidt emulation

2010-09-22 Thread Matteo Signorini
Hi to all, I'm trying to implement the sidt emulation in kvm in addition to the lidt emulation (already implemented) but I'm having some problems and I was wondering if you could help me with it. In order to add the sidt emulation first I've added the following function: 1) void realmode_sidt(struc

Nested Page Faults

2010-05-14 Thread Matteo Signorini
Hi to all, I am working on NPT and have some doubts. Please correct me if I am wrong, In NPT only the first time a page fault happens it is trapped by the host. The following page faults are not trapped by the host in order to reduce page walk overhead. My question is... Which Kvm function hand

OPCODE Emulation

2010-05-06 Thread Matteo Signorini
ve already read the Intel Volume 2B Instruction Set Reference N-Z pag. 4-440 but I have not found enough detailed information) Thank you Matteo Signorini -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majord

problem with vm-exit exit code

2010-01-18 Thread Matteo Signorini
Hi guys, I would like to intercept the vm-exit whenever the guest executes a lidt/sidt instruction. I know that lidt/sidt instructions cause a vm-exit if and only if these condition are satisfied:    -commands are executed in vmx non-root environment    -the "descriptor-table exiting" field of th

Re: systemcalls and kvm ...correct me if I am wrong

2009-06-08 Thread Matteo Signorini
advance, Matteo 2009/6/7 Avi Kivity : > Matteo Signorini wrote: >> >> Hi to all, >> >> correct me if I am wrong but isn't it the following the logical >> execution chain of a generic system call performed >> in a Kvm guest? >> >> Guest u

systemcalls and kvm ...correct me if I am wrong

2009-06-07 Thread Matteo Signorini
Hi to all, correct me if I am wrong but isn't it the following the logical execution chain of a generic system call performed in a Kvm guest? Guest userspace application -> Guest kernel -> Host kernel (kvm) -> Host userspace (Quemu) -> Host kernel -> -> Host userspace (Quemu) -> Guest kernel -> G

physical memory dump problem

2009-06-02 Thread Matteo Signorini
Hi! I have a problem with both kvm pmemsave and memsave functions. (I know that both invoke the cpu_physical_memory_rw function) I'm trying to dump a guest physical memory region (sys_call_table for example). I know that , for example, the sys_call_table is stored at 0x8133c620 phys addr