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

Re: [PATCH] x86/mm: Remove unnecessary mfn_valid() call from get_page_from_l1e()


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 27 Apr 2022 16:07:32 +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=fX2xapSIVLDWhfvYjgjQun4HG5R7CMqz5MySb6Y3TuU=; b=QUjA8SbnCszI9dSifgF4PykwGmEt0zZKoa08OiV4ZlGy/droR6uPXhxQjwBQ1R5HdDlP5uT19hMYPbdt2tfd44CAX8TF72S3knP2XvFE9BmmP5FLU+TMAfiJ8+5W79J3bXVVTx3F0rU2Tp4coMsxd5gggxXlAcZ2XeKxorjZinAQp4LuYXZ7KmrpleAbdhWoNcppm1C3o7Jrq71NYSKhlawYZWbzTLTaUNEbj1/SaN/CxZGn/8pu6lbsXkbsv+BeXq4JVSoyxyVQ6mLD3ki4A+9FAQwByrQy689I0BNWgvDYFJxi2NwZcB9+6dLUxA75A4KjWtG+yqNrS3D2ijVQiQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dymR0FWMzrUT+DN+tB4lO76A/UurR9ETi1Ey9+LaupAk/EJVRRVbImGl74Ggh2PScdRXZn6EE9Kx5mXXA0qnFC8zmqdmIjj/inINY2AcxjTBAQ9oNbG6R5VkyxkO7SXqSTS5mvsVQuWswTKwFwn3qyEfp3xIgj/jU5IOixNnEnsU/u1Fb6S3TCD3DjMLxs2nEMduHjGPgqt046xjkA9x03jwESY/dyDSgfLmdtax4HsM45E+IUcoB8/DOLf8eNJAJy/f7qFuXaJHQ+ojeXxT8EDmN3MNVJh/CV4r4qkEsQ/OpfW7FjhLUMTR3U1/vV+yPpQsIdLZWhKSERq23vvN0A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 27 Apr 2022 14:07:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 27.04.2022 16:04, Andrew Cooper wrote:
> mfn_valid() is not a trivially simple, and contains an evaluate_nospec() for
> speculative defence.  Avoid calling it redundantly, and just store the result
> of the first call.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@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®.