Re: [PATCH 2/3] KVM: X86: Implement PV sched yield hypercall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux