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

Re: [Xen-devel] [PATCH 3/6] x86/suspend: Don't save unnecessary GPRs


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Tue, 17 Dec 2019 13:04:40 +0100
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=Pass smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>
  • Delivery-date: Tue, 17 Dec 2019 12:05:05 +0000
  • Ironport-sdr: poMjiVrcssh064BUZNLqZWlil0BKZMSpHaGbKG/4SF9kwcEj+Q71P96egM1igrcl+Rj1XokKot M551JWKlOMH/TH+9k540d7t92Mw5+a6phxO3kyuSbQC3ZXwUQkv3yBsfo9V1piu/FGNVzEf3kI gOL4HZHln8zYHs9CPn8J6AZNjZkpjh+haDZaoZJmzxafTStzsHnLukKI5F91CR11f45OtnVtFU 7Y5AkZdEphY/vUZtlYvQhMXhva4FuBemjMNPTYupp/PQSSf5QVBpPrIIiqF/p9wQuV7UBXxW5r SCc=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Dec 13, 2019 at 07:04:33PM +0000, Andrew Cooper wrote:
> Only the callee-preserved registers need saving/restoring.  Spill them to the
> stack like regular functions do.  %rsp is now the only GPR which gets stashed
> in .data
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

> ---
> CC: Jan Beulich <JBeulich@xxxxxxxx>
> CC: Wei Liu <wl@xxxxxxx>
> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> ---
>  xen/arch/x86/acpi/wakeup_prot.S | 59 
> +++++++++--------------------------------
>  1 file changed, 12 insertions(+), 47 deletions(-)
> 
> diff --git a/xen/arch/x86/acpi/wakeup_prot.S b/xen/arch/x86/acpi/wakeup_prot.S
> index 35fd7a5e9f..2f6c8e18ef 100644
> --- a/xen/arch/x86/acpi/wakeup_prot.S
> +++ b/xen/arch/x86/acpi/wakeup_prot.S
> @@ -11,24 +11,14 @@
>  #define REF(x)          x(%rip)
>  
>  ENTRY(do_suspend_lowlevel)
> +        push    %rbp
> +        push    %rbx
> +        push    %r12
> +        push    %r13
> +        push    %r14
> +        push    %r15

I was expecting Xen had a macro for this (and the restore
counterpart), but I haven't found any (neither any other places where
it would be useful).

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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