From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH/RFC] KVM: track pid for VCPU only on KVM_RUN ioctl Date: Tue, 19 Aug 2014 14:06:37 +0200 Message-ID: <53F33DCD.2030509@redhat.com> References: <1407249854-2953-1-git-send-email-borntraeger@de.ibm.com> <53E38193.8060206@redhat.com> <53F30CF3.5030606@de.ibm.com> <53F3187E.6080706@redhat.com> <20140819132842.41b3c637@thinkpad-w530> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Christian Borntraeger , KVM , Gleb Natapov , Rik van Riel , Raghavendra K T , Michael Mueller To: David Hildenbrand Return-path: Received: from mx1.redhat.com ([209.132.183.28]:32102 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751613AbaHSMGs (ORCPT ); Tue, 19 Aug 2014 08:06:48 -0400 In-Reply-To: <20140819132842.41b3c637@thinkpad-w530> Sender: kvm-owner@vger.kernel.org List-ID: Il 19/08/2014 13:28, David Hildenbrand ha scritto: > Looking at the code, kvm_cpu_synchronize_state() seems to do these ioctls in > the vcpu thread (e.g. comming from cpu_synchronize_all_states()), any reasons > why kvm_cpu_synchronize_post_reset() doesn't do the same (e.g. called from > cpu_synchronize_all_post_reset())? No reason, feel free to post a patch for QEMU kvm-all.c. Documentation/virtual/kvm/api.txt clearly says: Only run vcpu ioctls from the same thread that was used to create the vcpu. Paolo