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

Re: [PATCH v4] x86/HVM: support emulated UMIP


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 17 Mar 2023 16:01:59 +0100
  • 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=q6yTCkFyu6seLkZ+yOGJrAURfhZV2qHsrd+4T4tjdpU=; b=I8bJr8GxNwCuk0TZXZMg6Ii/yQyc92DlrNosv1wx8Un2JVUsVhbGfzpYUGyX4il5+tYvpE5yjNo+fApYKcIw4aKSJw8Tn5zhXiNtOVIKkjAWxDQKIJyI/MBUj5Bba83rdiVemUjywJQE7sTB52lTzX5lJA7O5bbhJOspf7gN5n2f7o8ftXeNqegRFNtSjkjRVUUC0otnkoBM0LEyGSdm6nlhpKPe4BNm5V67esWtN3pZTNwgJKMfQrAh69DnCl+lBAzNfOHAleeHaO7W5NYIE4VE+NrIjLkg22NYJz3hnYi7vi7AjaQUcAdmfvBFI9/YZK94NXu/dfKcrQtJ1cAIAQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V+zWXQo0XJ8wsJk0pCD3o5KVUnTDvd8exsF81zEejyYeUsd9X3ppQA/20ukYm/KeuxNXu8BymOJqxJUTv6nUaqBAkKlvlRPQUdZmL0qj1GfaapIewgxK2jBBwy+TmfIr+d6x3rbb45VY8GVUV7L3zhze74kGqKt8x7wBCz6oX7XH5gZyt9NLTxqQCOy4LREyv2/XRdofnCbs692UM8/1U1YtMzIPeEwzOkBiv1a4+m/NHG/FKvx2p2voe5qI49GlbQQqlWgduCQ9Fnr37MiHjMdAPKMeK0BPsxmbUiLomhcZbgcuhWhzpI+Ww+0pfVUJRQkY4H+/1ro7gja7EezPAw==
  • 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>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>, Jun Nakajima <jun.nakajima@xxxxxxxxx>
  • Delivery-date: Fri, 17 Mar 2023 15:02:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.03.2023 15:29, Roger Pau Monné wrote:
> On Thu, Apr 15, 2021 at 11:47:42AM +0200, Jan Beulich wrote:
>> There are three noteworthy drawbacks:
>> 1) The intercepts we need to enable here are CPL-independent, i.e. we
>>    now have to emulate certain instructions for ring 0.
>> 2) On VMX there's no intercept for SMSW, so the emulation isn't really
>>    complete there.
> 
> Then I'm afraid we can't set the bit in the max CPUID policy.  What
> about domains being migrated from a host that has UMIP to an Intel
> host where UMIP is emulated?  They would see a change in behavior in
> SMSW, and the behavior won't match the ISA anymore.

Right, but that's the price to pay if we want such emulation (which back
at the time did look at least desirable, because the other affected insns
are more important to deal with). Not setting the bit in the max policy
is as good as not having emulation on VMX at all then.

Jan



 


Rackspace

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