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


Groups > linux.kernel > #1528371 > unrolled thread

[PATCH KERNEL] xen/events: use xen_vcpu_id mapping for EVTCHNOP_status

Started byVitaly Kuznetsov <vkuznets@redhat.com>
First post2016-11-23 13:40 +0100
Last post2016-11-23 17:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH KERNEL] xen/events: use xen_vcpu_id mapping for EVTCHNOP_status Vitaly Kuznetsov <vkuznets@redhat.com> - 2016-11-23 13:40 +0100
    Re: [PATCH KERNEL] xen/events: use xen_vcpu_id mapping for  EVTCHNOP_status Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-11-23 17:20 +0100

#1528371 — [PATCH KERNEL] xen/events: use xen_vcpu_id mapping for EVTCHNOP_status

FromVitaly Kuznetsov <vkuznets@redhat.com>
Date2016-11-23 13:40 +0100
Subject[PATCH KERNEL] xen/events: use xen_vcpu_id mapping for EVTCHNOP_status
Message-ID<sGF0d-4Vd-11@gated-at.bofh.it>
EVTCHNOP_status hypercall returns Xen's idea of vcpu id so we need to
compare it against xen_vcpu_id mapping, not the Linux cpu id.

Suggested-by: Radim Krcmar <rkrcmar@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
 drivers/xen/events/events_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
index 9ecfcdc..137bd0e 100644
--- a/drivers/xen/events/events_base.c
+++ b/drivers/xen/events/events_base.c
@@ -948,7 +948,7 @@ static int find_virq(unsigned int virq, unsigned int cpu)
 			continue;
 		if (status.status != EVTCHNSTAT_virq)
 			continue;
-		if (status.u.virq == virq && status.vcpu == cpu) {
+		if (status.u.virq == virq && status.vcpu == xen_vcpu_nr(cpu)) {
 			rc = port;
 			break;
 		}
-- 
2.7.4

[toc] | [next] | [standalone]


#1528548 — Re: [PATCH KERNEL] xen/events: use xen_vcpu_id mapping for EVTCHNOP_status

FromBoris Ostrovsky <boris.ostrovsky@oracle.com>
Date2016-11-23 17:20 +0100
SubjectRe: [PATCH KERNEL] xen/events: use xen_vcpu_id mapping for EVTCHNOP_status
Message-ID<sGIr7-78l-1@gated-at.bofh.it>
In reply to#1528371
On 11/23/2016 07:38 AM, Vitaly Kuznetsov wrote:
> EVTCHNOP_status hypercall returns Xen's idea of vcpu id so we need to
> compare it against xen_vcpu_id mapping, not the Linux cpu id.
>
> Suggested-by: Radim Krcmar <rkrcmar@redhat.com>
> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>

Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>


> ---
>  drivers/xen/events/events_base.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
> index 9ecfcdc..137bd0e 100644
> --- a/drivers/xen/events/events_base.c
> +++ b/drivers/xen/events/events_base.c
> @@ -948,7 +948,7 @@ static int find_virq(unsigned int virq, unsigned int cpu)
>  			continue;
>  		if (status.status != EVTCHNSTAT_virq)
>  			continue;
> -		if (status.u.virq == virq && status.vcpu == cpu) {
> +		if (status.u.virq == virq && status.vcpu == xen_vcpu_nr(cpu)) {
>  			rc = port;
>  			break;
>  		}

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web