Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1351735

Re: [PART1 RFC v2 02/10] KVM: x86: Introducing kvm_x86_ops VCPU blocking/unblocking

From Paolo Bonzini <pbonzini@redhat.com>
Newsgroups linux.kernel
Subject Re: [PART1 RFC v2 02/10] KVM: x86: Introducing kvm_x86_ops VCPU blocking/unblocking
Date 2016-03-07 16:50 +0100
Message-ID <ra5zZ-4I3-33@gated-at.bofh.it> (permalink)
References <r94PD-3Vt-3@gated-at.bofh.it> <r94PE-3Vt-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 04/03/2016 21:46, Suravee Suthikulpanit wrote:
>  
> +static void svm_vcpu_blocking(struct kvm_vcpu *vcpu)
> +{
> +	avic_set_running(vcpu, false);
> +}
> +
> +static void svm_vcpu_unblocking(struct kvm_vcpu *vcpu)
> +{
> +	avic_set_running(vcpu, true);
> +}
> +
>  static unsigned long svm_get_rflags(struct kvm_vcpu *vcpu)
>  {
>  	return to_svm(vcpu)->vmcb->save.rflags;
> @@ -4321,6 +4331,8 @@ static struct kvm_x86_ops svm_x86_ops = {
>  	.prepare_guest_switch = svm_prepare_guest_switch,
>  	.vcpu_load = svm_vcpu_load,
>  	.vcpu_put = svm_vcpu_put,
> +	.vcpu_blocking = svm_vcpu_blocking,
> +	.vcpu_unblocking = svm_vcpu_unblocking,

These two hunks should be added to patch 10.

Paolo

>  	.update_bp_intercept = update_bp_intercept,
>  	.get_msr = svm_get_msr,

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PART1 RFC v2 02/10] KVM: x86: Introducing kvm_x86_ops VCPU blocking/unblocking Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> - 2016-03-04 21:50 +0100
  Re: [PART1 RFC v2 02/10] KVM: x86: Introducing kvm_x86_ops VCPU  blocking/unblocking Paolo Bonzini <pbonzini@redhat.com> - 2016-03-07 16:50 +0100
    Re: [PART1 RFC v2 02/10] KVM: x86: Introducing kvm_x86_ops VCPU  blocking/unblocking Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> - 2016-03-14 07:30 +0100

csiph-web