Re: [PATCH 4/4] KVM: MIPS: Implement console output hypercall

2017-02-06 Thread James Hogan
On Mon, Feb 06, 2017 at 02:25:59PM +0100, Paolo Bonzini wrote: > > > On 06/02/2017 11:46, James Hogan wrote: > > Documentation/virtual/kvm/api.txt seems to suggest that > > KVM_EXIT_HYPERCALL is obsolete. When it suggests using KVM_EXIT_MMIO, > > does it simply mean the guest should use MMIO to

Re: [PATCH 4/4] KVM: MIPS: Implement console output hypercall

2017-02-06 Thread Paolo Bonzini
On 06/02/2017 11:46, James Hogan wrote: > Documentation/virtual/kvm/api.txt seems to suggest that > KVM_EXIT_HYPERCALL is obsolete. When it suggests using KVM_EXIT_MMIO, > does it simply mean the guest should use MMIO to some virtio device of > some sort rather than using hypercalls, or that the

[PATCH 4/4] KVM: MIPS: Implement console output hypercall

2017-02-06 Thread James Hogan
Implement console output hypercall by exiting back to userland with KVM_EXIT_HYPERCALL, and setting the return value on next KVM_RUN. We also document the hypercall along with the others as the documentation was never added Signed-off-by: James Hogan Cc: Paolo Bonzini