From: Pavel Fedin <p.fedin@samsung.com>
To: 'Andrey Smetanin' <asmetanin@virtuozzo.com>, kvm@vger.kernel.org
Cc: "'Denis V. Lunev'" <den@openvz.org>,
'Gleb Natapov' <gleb@kernel.org>,
'Paolo Bonzini' <pbonzini@redhat.com>,
'Roman Kagan' <rkagan@virtuozzo.com>,
qemu-devel@nongnu.org
Subject: RE: [PATCH v4 5/5] kvm/x86: Hyper-V kvm exit
Date: Fri, 18 Dec 2015 18:19:25 +0300 [thread overview]
Message-ID: <01cc01d139a7$7baad550$73007ff0$@samsung.com> (raw)
In-Reply-To: <1447158995-21919-6-git-send-email-asmetanin@virtuozzo.com>
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
next prev parent reply other threads:[~2015-12-18 15:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 12:36 [PATCH v4 0/5] KVM: Hyper-V synthetic interrupt controller Andrey Smetanin
2015-11-10 12:36 ` [PATCH v4 1/5] kvm/irqchip: kvm_arch_irq_routing_update renaming split Andrey Smetanin
2015-11-10 12:36 ` [PATCH v4 2/5] kvm/x86: split ioapic-handled and EOI exit bitmaps Andrey Smetanin
2015-11-10 12:36 ` [PATCH v4 3/5] kvm/x86: per-vcpu apicv deactivation support Andrey Smetanin
2015-11-10 12:36 ` [PATCH v4 4/5] kvm/x86: Hyper-V synthetic interrupt controller Andrey Smetanin
2015-11-10 12:36 ` [PATCH v4 5/5] kvm/x86: Hyper-V kvm exit Andrey Smetanin
2015-12-18 15:19 ` Pavel Fedin [this message]
2015-12-18 15:53 ` Denis V. Lunev
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='01cc01d139a7$7baad550$73007ff0$@samsung.com' \
--to=p.fedin@samsung.com \
--cc=asmetanin@virtuozzo.com \
--cc=den@openvz.org \
--cc=gleb@kernel.org \
--cc=kvm@vger.kernel.org \
--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).