All of lore.kernel.org
 help / color / mirror / Atom feed
From: 'Roman Kagan' <rkagan@virtuozzo.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Pavel Fedin <p.fedin@samsung.com>,
	'Andrey Smetanin' <asmetanin@virtuozzo.com>,
	<kvm@vger.kernel.org>, 'Gleb Natapov' <gleb@kernel.org>,
	'Joerg Roedel' <joro@8bytes.org>,
	"'K. Y. Srinivasan'" <kys@microsoft.com>,
	'Haiyang Zhang' <haiyangz@microsoft.com>,
	"'Denis V. Lunev'" <den@openvz.org>, <qemu-devel@nongnu.org>
Subject: Re: [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit
Date: Wed, 20 Jan 2016 20:31:07 +0300	[thread overview]
Message-ID: <20160120173106.GJ26969@rkaganb.sw.ru> (raw)
In-Reply-To: <569FBDA1.7010704@redhat.com>

On Wed, Jan 20, 2016 at 06:02:25PM +0100, Paolo Bonzini wrote:
> 
> 
> On 20/01/2016 16:20, 'Roman Kagan' wrote:
> >> > So we should not add a new exit
> > Why?  VCPU exit codes are not a scarse resource.
> 
> Indeed, but grouping makes things easier to understand.
> 
> > So far we've envisaged two reasons for VCPU exit related to hyper-v: one
> > for hyper-v MSRs and the other for hypercalls.  Since there was a
> > discussion on implementing generic MSR access by Peter we thought it
> > wiser to introduce a new VCPU exit for hyper-v hypercalls to avoid
> > interfering with the MSR implementation.
> 
> That's a good idea.  However, I think I'm not going to accept the MSR
> exit feature, and then the current Hyper-V exit API makes some sense
> indeed (it's just 3 values, transferring them all at once is not
> expensive at all).

OK can we please sum up (as I'm now a bit confused) what we do now:

1) use a single vcpu exit for both Hyper-V cases (which implies we need
   to fix this patchset to add the subcode for hypercalls)

 or

2) use individual vcpu exits for Hyper-V MSRs and for Hyper-V hypercalls
   (which implies we need to submit an incremental patch dropping the
   subcode from Hyper-V MSR exit and renaming it to better describe the
   reality)?

Thanks,
Roman.

WARNING: multiple messages have this Message-ID (diff)
From: 'Roman Kagan' <rkagan@virtuozzo.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, 'Gleb Natapov' <gleb@kernel.org>,
	'Joerg Roedel' <joro@8bytes.org>,
	Pavel Fedin <p.fedin@samsung.com>,
	qemu-devel@nongnu.org,
	'Andrey Smetanin' <asmetanin@virtuozzo.com>,
	"'Denis V. Lunev'" <den@openvz.org>,
	"'K. Y. Srinivasan'" <kys@microsoft.com>,
	'Haiyang Zhang' <haiyangz@microsoft.com>
Subject: Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit
Date: Wed, 20 Jan 2016 20:31:07 +0300	[thread overview]
Message-ID: <20160120173106.GJ26969@rkaganb.sw.ru> (raw)
In-Reply-To: <569FBDA1.7010704@redhat.com>

On Wed, Jan 20, 2016 at 06:02:25PM +0100, Paolo Bonzini wrote:
> 
> 
> On 20/01/2016 16:20, 'Roman Kagan' wrote:
> >> > So we should not add a new exit
> > Why?  VCPU exit codes are not a scarse resource.
> 
> Indeed, but grouping makes things easier to understand.
> 
> > So far we've envisaged two reasons for VCPU exit related to hyper-v: one
> > for hyper-v MSRs and the other for hypercalls.  Since there was a
> > discussion on implementing generic MSR access by Peter we thought it
> > wiser to introduce a new VCPU exit for hyper-v hypercalls to avoid
> > interfering with the MSR implementation.
> 
> That's a good idea.  However, I think I'm not going to accept the MSR
> exit feature, and then the current Hyper-V exit API makes some sense
> indeed (it's just 3 values, transferring them all at once is not
> expensive at all).

OK can we please sum up (as I'm now a bit confused) what we do now:

1) use a single vcpu exit for both Hyper-V cases (which implies we need
   to fix this patchset to add the subcode for hypercalls)

 or

2) use individual vcpu exits for Hyper-V MSRs and for Hyper-V hypercalls
   (which implies we need to submit an incremental patch dropping the
   subcode from Hyper-V MSR exit and renaming it to better describe the
   reality)?

Thanks,
Roman.

  reply	other threads:[~2016-01-20 17:31 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-12 10:50 [PATCH v1 0/5] KVM: Hyper-V VMBus hypercalls Andrey Smetanin
2016-01-12 10:50 ` [Qemu-devel] " Andrey Smetanin
2016-01-12 10:50 ` [PATCH v1 1/5] kvm/x86: Rename Hyper-V long spin wait hypercall Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-12 10:50 ` [PATCH v1 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-20 15:04   ` KY Srinivasan
2016-01-20 15:04     ` [Qemu-devel] " KY Srinivasan
2016-01-12 10:50 ` [PATCH v1 3/5] kvm/x86: Pass return code of kvm_emulate_hypercall Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-12 10:50 ` [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-14  8:30   ` Pavel Fedin
2016-01-14  8:30     ` [Qemu-devel] " Pavel Fedin
2016-01-14 10:20     ` 'Roman Kagan'
2016-01-14 10:20       ` [Qemu-devel] " 'Roman Kagan'
2016-01-14 10:50       ` Pavel Fedin
2016-01-14 10:50         ` [Qemu-devel] " Pavel Fedin
2016-01-14 11:52         ` 'Roman Kagan'
2016-01-14 11:52           ` [Qemu-devel] " 'Roman Kagan'
2016-01-20 13:59     ` Paolo Bonzini
2016-01-20 13:59       ` [Qemu-devel] " Paolo Bonzini
2016-01-20 14:41       ` Pavel Fedin
2016-01-20 14:41         ` [Qemu-devel] " Pavel Fedin
2016-01-20 15:20       ` 'Roman Kagan'
2016-01-20 15:20         ` [Qemu-devel] " 'Roman Kagan'
2016-01-20 17:02         ` Paolo Bonzini
2016-01-20 17:02           ` [Qemu-devel] " Paolo Bonzini
2016-01-20 17:31           ` 'Roman Kagan' [this message]
2016-01-20 17:31             ` 'Roman Kagan'
2016-01-20 21:05             ` Paolo Bonzini
2016-01-20 21:05               ` [Qemu-devel] " Paolo Bonzini
2016-01-20 13:43   ` Paolo Bonzini
2016-01-20 13:43     ` [Qemu-devel] " Paolo Bonzini
2016-01-20 16:51     ` Roman Kagan
2016-01-20 16:51       ` [Qemu-devel] " Roman Kagan
2016-01-12 10:50 ` [PATCH v1 5/5] kvm/x86: Reject Hyper-V hypercall continuation Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-12 11:19 ` [PATCH v1 0/5] KVM: Hyper-V VMBus hypercalls Andrey Smetanin
2016-01-12 11:19   ` [Qemu-devel] " Andrey Smetanin
2016-01-19  7:49 ` Denis V. Lunev
2016-01-19  7:49   ` [Qemu-devel] " Denis V. Lunev
2016-01-19 16:47   ` Paolo Bonzini
2016-01-19 16:47     ` [Qemu-devel] " Paolo Bonzini
2016-01-20 14:08     ` Paolo Bonzini
2016-01-20 14:08       ` [Qemu-devel] " Paolo Bonzini

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=20160120173106.GJ26969@rkaganb.sw.ru \
    --to=rkagan@virtuozzo.com \
    --cc=asmetanin@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=gleb@kernel.org \
    --cc=haiyangz@microsoft.com \
    --cc=joro@8bytes.org \
    --cc=kvm@vger.kernel.org \
    --cc=kys@microsoft.com \
    --cc=p.fedin@samsung.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.