From: "Denis V. Lunev" <den@openvz.org>
To: Pavel Fedin <p.fedin@samsung.com>,
'Andrey Smetanin' <asmetanin@virtuozzo.com>,
kvm@vger.kernel.org
Cc: 'Gleb Natapov' <gleb@kernel.org>,
'Paolo Bonzini' <pbonzini@redhat.com>,
'Roman Kagan' <rkagan@virtuozzo.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4 5/5] kvm/x86: Hyper-V kvm exit
Date: Fri, 18 Dec 2015 18:53:41 +0300 [thread overview]
Message-ID: <56742C05.4050907@openvz.org> (raw)
In-Reply-To: <01cc01d139a7$7baad550$73007ff0$@samsung.com>
On 12/18/2015 06:19 PM, Pavel Fedin wrote:
> Hello!
>
> I realize that it's perhaps too late, because patches are already on Linux-next, but i have one concern... May be it's not too
> late...
>
> I dislike implementing architecture-dependent exit code where we could implement an architecture-independent one.
>
> As far as i understand this code, KVM_EXIT_HYPERV is called when one of three MSRs are accessed. But, shouldn't we have implemented
> instead something more generic, like KVM_EXIT_REG_IO, which would work similar to KVM_EXIT_PIO or KVM_EXIT_MMIO, but carry register
> code and value?
>
> This would allow us to solve the same task which we have done here, but this solution would be reusable for other devices and other
> archirectures. What if in future we have more system registers to emulate in userspace?
>
> I write this because at one point i suggested similar thing for ARM64 (but i never actually wrote it), to emulate physical CP15
> timer. And it would require exactly the same capability - process some trapped system register accesses in userspace.
>
> Kind regards,
> Pavel Fedin
> Expert Engineer
> Samsung Electronics Research center Russia
>
>
we have discussed this AFAIR. HyperV guest implementation
is available in Linux kernel and thus technically we can have
this stuff on any platform.
Den
next prev parent reply other threads:[~2015-12-18 15:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 12:36 [Qemu-devel] [PATCH v4 0/5] KVM: Hyper-V synthetic interrupt controller Andrey Smetanin
2015-11-10 12:36 ` [Qemu-devel] [PATCH v4 1/5] kvm/irqchip: kvm_arch_irq_routing_update renaming split Andrey Smetanin
2015-11-10 12:36 ` [Qemu-devel] [PATCH v4 2/5] kvm/x86: split ioapic-handled and EOI exit bitmaps Andrey Smetanin
2015-11-10 12:36 ` [Qemu-devel] [PATCH v4 3/5] kvm/x86: per-vcpu apicv deactivation support Andrey Smetanin
2015-11-10 12:36 ` [Qemu-devel] [PATCH v4 4/5] kvm/x86: Hyper-V synthetic interrupt controller Andrey Smetanin
2015-11-10 12:36 ` [Qemu-devel] [PATCH v4 5/5] kvm/x86: Hyper-V kvm exit Andrey Smetanin
2015-12-18 15:19 ` Pavel Fedin
2015-12-18 15:53 ` Denis V. Lunev [this message]
2015-12-18 16:01 ` Paolo Bonzini
2015-12-18 18:10 ` Peter Hornyack
2015-12-18 18:23 ` Paolo Bonzini
2015-12-18 18:39 ` Roman Kagan
2015-12-21 12:59 ` Andrey Smetanin
2015-12-21 13:28 ` Pavel Fedin
2015-12-21 13:48 ` Andrey Smetanin
2015-12-21 15:21 ` Pavel Fedin
2015-12-18 18:25 ` 'Roman Kagan'
2015-12-21 7:44 ` Pavel Fedin
2015-12-18 18:00 ` 'Roman Kagan'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56742C05.4050907@openvz.org \
--to=den@openvz.org \
--cc=asmetanin@virtuozzo.com \
--cc=gleb@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=p.fedin@samsung.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rkagan@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).