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

Re: [PATCH v5] x86/vmx: add hvm functions to get/set non-register state


  • To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 20 Apr 2022 08:50:17 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2eJBJARYiDwISEluRGDzmWVzhkR1YAnlnbvDxmm916o=; b=g43X2wjloWReYRVnpPUvYD9cWg48/dMpbILv3KT7ekDbgpAOHM6GN8pUkx5GDluqkmChROSJEMBWC/rh0eNyN4fl4vCk5cdUzpZ2nyuVMOQEfGm/sxYnOqVmgLpy49z3TPcR3g/4tHRYGTxU1VWwH/hmE5gbkzTH9kXTMkKkqiJ3fkA1VQ6+FavQCJHHH6NeFupn9HkyNu9I6Hwo0fNpyk8HBp+jYdiWpQz+BGHg1oolxRPPA7Sa4HhR6BlJtpXLj7Xz+j60Z+b5P+9KSIh19zrF4KkOkfW2HeMd83UjepBNOq1eGrboQorUgWoMtXhgj3v7/Mv3utDSEhaXGZDR/w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RXvG7LhPFgNvqXgK8tTQM1nzPf6KGTIDyZOJBmgAUyouksZcFOIJL8ojwjIGnvDmwcikF8j3m1fDJ2ctxeh9yLrlqW9wSSY6H2gvkXGhOHS2nGrSg6yFuS3GWiEoXlV0oRgYuiUIZsncFrnAJ6vpOWIHBx4ZQ0QyK1L9LSk+QD0xqP/Yn9jWbLQwZoawDgYE96KB9vIX4PlXZKDqzkl5dHDGJWYf5wnVz7CS75pjbO8yfIusFCenPRfJEYZHtn41Xf0Q4TooYGVVWm4MQi+Jy1O8LuA19iVP0RRyZPuyOFYfEuwhOx4XnWDrWBW6fKPhKj91skvAex+5RoGHjCStaA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, "Cooper, Andrew" <andrew.cooper3@xxxxxxxxxx>, Pau Monné, Roger <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, "Lengyel, Tamas" <tamas.lengyel@xxxxxxxxx>
  • Delivery-date: Wed, 20 Apr 2022 06:50:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.04.2022 08:39, Tian, Kevin wrote:
>> From: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
>> Sent: Tuesday, April 19, 2022 2:43 AM
>>
>> On Fri, Mar 25, 2022 at 9:34 AM Tamas K Lengyel <tamas.lengyel@xxxxxxxxx>
>> wrote:
>>>
>>> During VM forking and resetting a failed vmentry has been observed due
>>> to the guest non-register state going out-of-sync with the guest register
>>> state. For example, a VM fork reset right after a STI instruction can 
>>> trigger
>>> the failed entry. This is due to the guest non-register state not being 
>>> saved
>>> from the parent VM, thus the reset operation only copies the register state.
>>>
>>> Fix this by adding a new pair of hvm functions to get/set the guest
>>> non-register state so that the overall vCPU state remains in sync.
>>>
>>> Signed-off-by: Tamas K Lengyel <tamas.lengyel@xxxxxxxxx>
>>> ---
>>> v5: Switch to internal-only hvm funcs instead of adding to hvm_hw_cpu
>>
>> Patch ping.
> 
> I'd like to hear opinions from Andrew/Jan first. Obviously they have
> different thoughts when reviewing the earlier versions.

Well, I certainly would prefer if migration was taken care of at the same
time, but I can understand if Tamas doesn't want to put more time into
getting that case working. Plus, aiui, this solution to his problem won't
prevent the eventual wider scope change to be used also for the specific
purpose here, perhaps by simply fully replacing what is being done now.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.