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


Groups > linux.kernel > #1705995 > unrolled thread

[PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()

Started by"Longpeng(Mike)" <longpeng2@huawei.com>
First post2017-08-08 06:10 +0200
Last post2017-08-08 10:40 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [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

#1705995 — [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()

From"Longpeng(Mike)" <longpeng2@huawei.com>
Date2017-08-08 06:10 +0200
Subject[PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()
Message-ID<uc40a-2u9-15@gated-at.bofh.it>
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);
 
-- 
1.8.3.1

[toc] | [next] | [standalone]


#1706113 — Re: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()

FromCornelia Huck <cohuck@redhat.com>
Date2017-08-08 09:40 +0200
SubjectRe: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()
Message-ID<uc7ho-4KD-21@gated-at.bofh.it>
In reply to#1705995
On Tue, 8 Aug 2017 12:05:34 +0800
"Longpeng(Mike)" <longpeng2@huawei.com> 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);
>  

Acked-by: Cornelia Huck <cohuck@redhat.com>

[toc] | [prev] | [next] | [standalone]


#1706157 — Re: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()

FromDavid Hildenbrand <david@redhat.com>
Date2017-08-08 10:40 +0200
SubjectRe: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()
Message-ID<uc8ds-5nN-23@gated-at.bofh.it>
In reply to#1705995
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web