From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PART1 RFC v2 02/10] KVM: x86: Introducing kvm_x86_ops VCPU blocking/unblocking Date: Mon, 7 Mar 2016 16:42:31 +0100 Message-ID: <56DDA167.9080803@redhat.com> References: <1457124368-2025-1-git-send-email-Suravee.Suthikulpanit@amd.com> <1457124368-2025-3-git-send-email-Suravee.Suthikulpanit@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, wei@redhat.com, sherry.hurwitz@amd.com To: Suravee Suthikulpanit , rkrcmar@redhat.com, joro@8bytes.org, bp@alien8.de, gleb@kernel.org, alex.williamson@redhat.com Return-path: In-Reply-To: <1457124368-2025-3-git-send-email-Suravee.Suthikulpanit@amd.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 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,