[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0b8525d8-e26b-e4df-508d-b6a4d9c06a76@redhat.com>
Date: Mon, 27 May 2019 13:53:58 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Wanpeng Li <kernellwp@...il.com>, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: Radim Krčmář <rkrcmar@...hat.com>
Subject: Re: [PATCH 2/3] KVM: X86: Implement PV sched yield hypercall
On 27/05/19 12:34, Wanpeng Li wrote:
> + rcu_read_lock();
> + map = rcu_dereference(kvm->arch.apic_map);
> + target = map->phys_map[dest_id]->vcpu;
> + rcu_read_unlock();
> +
> + kvm_vcpu_yield_to(target);
This needs to check that map->phys_map[dest_id] is not NULL.
Paolo
Powered by blists - more mailing lists