Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1200749
| From | Paolo Bonzini <pbonzini@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/5] KVM: add KVM_USER_EXIT vm ioctl for userspace exit |
| Date | 2015-08-05 15:40 +0200 |
| Message-ID | <pU75g-2L3-9@gated-at.bofh.it> (permalink) |
| References | <pU6VA-2zD-7@gated-at.bofh.it> <pU6VB-2zD-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 05/08/2015 15:21, Radim Krčmář wrote:
> + kvm_for_each_vcpu(idx, vcpu, kvm)
> + if (vcpu->vcpu_id == vcpu_id) {
> + kvm_make_request(KVM_REQ_EXIT, vcpu);
> + kvm_vcpu_kick(vcpu);
> +
> + return 0;
> + }
> +
Why not a vcpu ioctl? kvm_for_each_vcpu can become pretty expensive if
you have a few dozen VCPUs.
Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] KVM: optimize userspace exits with a new ioctl Radim Krčmář <rkrcmar@redhat.com> - 2015-08-05 15:30 +0200
[PATCH 4/5] KVM: optimize common cases in KVM_USER_EXIT Radim Krčmář <rkrcmar@redhat.com> - 2015-08-05 15:30 +0200
[PATCH 1/5] KVM: add kvm_has_request wrapper Radim Krčmář <rkrcmar@redhat.com> - 2015-08-05 15:30 +0200
[PATCH 3/5] KVM: add KVM_USER_EXIT vm ioctl for userspace exit Radim Krčmář <rkrcmar@redhat.com> - 2015-08-05 15:30 +0200
Re: [PATCH 3/5] KVM: add KVM_USER_EXIT vm ioctl for userspace exit Radim Krčmář <rkrcmar@redhat.com> - 2015-08-05 15:40 +0200
Re: [PATCH 3/5] KVM: add KVM_USER_EXIT vm ioctl for userspace exit Paolo Bonzini <pbonzini@redhat.com> - 2015-08-05 15:40 +0200
Re: [PATCH 3/5] KVM: add KVM_USER_EXIT vm ioctl for userspace exit Radim Krčmář <rkrcmar@redhat.com> - 2015-08-05 15:50 +0200
Re: [PATCH 3/5] KVM: add KVM_USER_EXIT vm ioctl for userspace exit Paolo Bonzini <pbonzini@redhat.com> - 2015-08-05 15:40 +0200
[PATCH 5/5] KVM: x86: add request_exits debug counter Radim Krčmář <rkrcmar@redhat.com> - 2015-08-05 15:30 +0200
csiph-web