[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspa
From: |
Pavel Fedin |
Subject: |
Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit |
Date: |
Thu, 14 Jan 2016 13:50:20 +0300 |
Hello!
> We thought reusing KVM_EXIT_HYPERCALL was a bad idea exactly because of
> that. Hypercalls are not universal, the calling and return conventions
> are hypervisor-specific.
Treatment of them is hypervisor-specific, but from CPUs point of view they are
the same. You load something into registers, and
execute hypercall instruction. So, you just need to pass registers in your
structure. Or, you could even use generic register access
APIs.
> KVM already has to make the decision that the
> particular vmexit is a HyperV hypercall; it appears unnatural to then
> pass the data on to userspace in a generic structure and have them make
> that decision again.
Is it so difficult to make such a decision? The userland already knows what we
are emulating.
I'm afraid that in future we can end up in having 10 versions of
KVM_EXIT_xxx_HYPERCALL with very small difference between them.
Will it be good?
Kind regards,
Pavel Fedin
Senior Engineer
Samsung Electronics Research center Russia
- [Qemu-devel] [PATCH v1 0/5] KVM: Hyper-V VMBus hypercalls, Andrey Smetanin, 2016/01/12
- [Qemu-devel] [PATCH v1 3/5] kvm/x86: Pass return code of kvm_emulate_hypercall, Andrey Smetanin, 2016/01/12
- [Qemu-devel] [PATCH v1 1/5] kvm/x86: Rename Hyper-V long spin wait hypercall, Andrey Smetanin, 2016/01/12
- [Qemu-devel] [PATCH v1 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header, Andrey Smetanin, 2016/01/12
- [Qemu-devel] [PATCH v1 5/5] kvm/x86: Reject Hyper-V hypercall continuation, Andrey Smetanin, 2016/01/12
- [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit, Andrey Smetanin, 2016/01/12
- Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit, Paolo Bonzini, 2016/01/20
- Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit, Pavel Fedin, 2016/01/20
- Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit, 'Roman Kagan', 2016/01/20
- Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit, Paolo Bonzini, 2016/01/20
- Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit, 'Roman Kagan', 2016/01/20
- Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit, Paolo Bonzini, 2016/01/20
Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit, Paolo Bonzini, 2016/01/20
Re: [Qemu-devel] [PATCH v1 0/5] KVM: Hyper-V VMBus hypercalls, Andrey Smetanin, 2016/01/12