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,
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;
+
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;
+
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;
+
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
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;
+ }
+
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
---