Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-30 Thread Sanjay Lal
On May 28, 2013, at 8:04 AM, Paolo Bonzini wrote: Il 19/05/2013 07:47, Sanjay Lal ha scritto: +static int kvm_vz_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) +{ +struct mips_coproc *cop0 = vcpu-arch.cop0; + +/* some registers are not restored + * random,

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-30 Thread Sanjay Lal
On May 28, 2013, at 9:14 AM, Paolo Bonzini wrote: Il 19/05/2013 07:47, Sanjay Lal ha scritto: +#endif +local_irq_save(flags); +if (kvm_mips_handle_vz_root_tlb_fault(badvaddr, vcpu) 0) { +run-exit_reason = KVM_EXIT_INTERNAL_ERROR; +

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 20:35, Sanjay Lal ha scritto: +#endif +local_irq_save(flags); +if (kvm_mips_handle_vz_root_tlb_fault(badvaddr, vcpu) 0) { +run-exit_reason = KVM_EXIT_INTERNAL_ERROR; +er = EMULATE_FAIL; +

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-30 Thread Sanjay Lal
On May 30, 2013, at 1:11 PM, Paolo Bonzini wrote: Il 30/05/2013 20:35, Sanjay Lal ha scritto: +#endif +local_irq_save(flags); +if (kvm_mips_handle_vz_root_tlb_fault(badvaddr, vcpu) 0) { +run-exit_reason = KVM_EXIT_INTERNAL_ERROR; +

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-28 Thread Paolo Bonzini
Il 19/05/2013 07:47, Sanjay Lal ha scritto: +static int kvm_vz_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) +{ + struct mips_coproc *cop0 = vcpu-arch.cop0; + + /* some registers are not restored + * random, count: read-only + * userlocal

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-28 Thread Paolo Bonzini
Il 19/05/2013 07:47, Sanjay Lal ha scritto: +#endif + local_irq_save(flags); + if (kvm_mips_handle_vz_root_tlb_fault(badvaddr, vcpu) 0) { + run-exit_reason = KVM_EXIT_INTERNAL_ERROR; + er = EMULATE_FAIL; + } +

[PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-18 Thread Sanjay Lal
The VZ-ASE provices the Guest with its own COP0 context, so the types of exceptions that will trap to the root a lot fewer than in the trap and emulate case. - Root level TLB miss handlers that map GPAs to RPAs. - Guest Exits Signed-off-by: Sanjay Lal sanj...@kymasys.com ---