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

Re: [PATCH v7 03/11] libx86: introduce helper to fetch msr entry


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 25 Jan 2022 16:04:36 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=JNtqXJwOJdkIZGOtN7xRp7d0DmgT8YBuQ+out6f5hy8=; b=Xj5uiVp057RgF91G6e+TfYEjYY+NkWubPXnmoXnxgdlBlSztbPF5i4+EWduXrferghjmrdLBr4J4F6F+LliTBFfXdPRstajsZ5iQZvLlC7rf79RgspsdkuoJHJDpKDNKiOY8bg5KZwBaxnrvo21gxWT5ugXBlDoMZ9degiX3W2aiSIzO4J8S+3LQ+xG7dC73cpM+OKRXsGPouhxLbaycKOxg7MnSjg/wm3RIHyMtA4FHRqJoLM/7h3fZWYXDEGlt6OL9GhssDz1QwZbL7/ZLlxKIegIR8kcFs1B7MnzWPb9CbegegUZn1h321TvrNGjHbDr7fZug6sev0QqAw+m4MA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LoWbn3IfnS+NjFdUOdKnZ2fEGA+5hbNj8WxzuSWLMM7Fa0axHpmkkpGUb0i1PQDnlQyUYpYzAbbmWtpasYXyUt6Mr5qWQt67iCQzHV+2XTbCmvJyILezJj5kjLd8RojZKb9AbOax529nW+QJQoY4Ak5/Ud2ewZDABUJoKSn6BTcS1HTreP4P76U+AZQjoqHP5DCi9NdbcsFKUaeZyTla7IYRIlORhyCicZhTjZ8LjKfewBMb0OZD5xIla85uq8qb3kLGnFJMc8D9MBQ3rDHMD06/KmsWxBTqtsffe3LKVm2GSySWrq9zXoekqGX3L7DZluB/8oSJrQJ/Xl1FPJtDgg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 25 Jan 2022 15:04:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25.01.2022 15:49, Roger Pau Monne wrote:
> Use such helper in order to replace the code in
> x86_msr_copy_from_buffer. Note the introduced helper should not be
> directly called and instead x86_msr_get_entry should be used that will
> properly deal with const and non-const inputs.
> 
> Note this requires making the raw fields uint64_t so that it can
> accommodate the maximum size of MSRs values, and in turn removing the
> truncation tests.
> 
> Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>




 


Rackspace

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