Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1706157
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | David Hildenbrand <david@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel() |
| Date | Tue, 08 Aug 2017 10:40:02 +0200 |
| Message-ID | <uc8ds-5nN-23@gated-at.bofh.it> (permalink) |
| References | <uc409-2u9-11@gated-at.bofh.it> <uc40a-2u9-15@gated-at.bofh.it> |
| X-Original-To | "Longpeng(Mike)" <longpeng2@huawei.com>, pbonzini@redhat.com, rkrcmar@redhat.com |
| Dmarc-Filter | OpenDMARC Filter v1.3.2 mx1.redhat.com 2A1F5822 |
| Authentication-Results | ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com |
| Authentication-Results | ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=david@redhat.com |
| Organization | Red Hat GmbH |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Language | en-US |
| Content-Transfer-Encoding | 7bit |
| X-Scanned-By | MIMEDefang 2.79 on 10.5.11.16 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 08 Aug 2017 08:35:45 +0000 (UTC) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 29 |
| X-Original-Cc | agraf@suse.com, borntraeger@de.ibm.com, cohuck@redhat.com, christoffer.dall@linaro.org, marc.zyngier@arm.com, james.hogan@imgtec.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, weidong.huang@huawei.com, arei.gonglei@huawei.com, wangxinxin.wang@huawei.com, longpeng.mike@gmail.com |
| X-Original-Date | Tue, 8 Aug 2017 10:35:40 +0200 |
| X-Original-Message-ID | <b1413e35-a62b-1237-5c48-6569ca8c2cf5@redhat.com> |
| X-Original-References | <1502165135-4784-1-git-send-email-longpeng2@huawei.com> <1502165135-4784-4-git-send-email-longpeng2@huawei.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1706157 |
Show key headers only | View raw
On 08.08.2017 06:05, Longpeng(Mike) wrote:
> This implements the kvm_arch_vcpu_in_kernel() for s390.
>
> Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
> ---
> arch/s390/kvm/kvm-s390.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
> index 0b0c689..e46177b 100644
> --- a/arch/s390/kvm/kvm-s390.c
> +++ b/arch/s390/kvm/kvm-s390.c
> @@ -2449,7 +2449,7 @@ int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu)
>
> bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu)
> {
> - return false;
> + return !(vcpu->arch.sie_block->gpsw.mask & PSW_MASK_PSTATE);
> }
> EXPORT_SYMBOL_GPL(kvm_arch_vcpu_in_kernel);
>
>
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel() "Longpeng(Mike)" <longpeng2@huawei.com> - 2017-08-08 06:10 +0200 Re: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel() Cornelia Huck <cohuck@redhat.com> - 2017-08-08 09:40 +0200 Re: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel() David Hildenbrand <david@redhat.com> - 2017-08-08 10:40 +0200
csiph-web