From mboxrd@z Thu Jan 1 00:00:00 1970 From: Razvan Cojocaru Subject: Is it safe to assume that v == current in hvm_do_resume()? Date: Wed, 22 Oct 2014 11:11:41 +0300 Message-ID: <544766BD.4020009@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Hello, As far as I've understood the code, and based on several tests, it would appear that in xen/arch/x86/hvm/hvm.c, the struct vcpu *v parameter to hvm_do_resume() is always equal to current. Is that a reasonable assumption to make? I could have missed some use cases for the function. Thanks, Razvan