From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D29AC433DF for ; Tue, 20 Oct 2020 09:55:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D48662225F for ; Tue, 20 Oct 2020 09:55:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404817AbgJTJz2 (ORCPT ); Tue, 20 Oct 2020 05:55:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:40404 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404577AbgJTJz2 (ORCPT ); Tue, 20 Oct 2020 05:55:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 77965B02D; Tue, 20 Oct 2020 09:55:27 +0000 (UTC) Date: Tue, 20 Oct 2020 11:55:25 +0200 From: Joerg Roedel To: Sean Christopherson Cc: Joerg Roedel , x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Kees Cook , Arvind Sankar , Martin Radev , Tom Lendacky , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] x86/boot/compressed/64: Introduce sev_status Message-ID: <20201020095525.GH9328@suse.de> References: <20201019151121.826-1-joro@8bytes.org> <20201019151121.826-2-joro@8bytes.org> <20201020005925.GA24596@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020005925.GA24596@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 19, 2020 at 05:59:25PM -0700, Sean Christopherson wrote: > On Mon, Oct 19, 2020 at 05:11:17PM +0200, Joerg Roedel wrote: > > + push %rax > > + push %rcx > > There's no need to save/restore RAX and RCX, they are callee save. This > function is only called from C, so I doubt it's using a custom ABI. Right, removed the save/restore of these registers from the function. Thanks, Joerg