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=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 50F56C76188 for ; Tue, 16 Jul 2019 04:15:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2204D20880 for ; Tue, 16 Jul 2019 04:15:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726653AbfGPEPc (ORCPT ); Tue, 16 Jul 2019 00:15:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:51856 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726502AbfGPEPc (ORCPT ); Tue, 16 Jul 2019 00:15:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 28DB8AFD2; Tue, 16 Jul 2019 04:15:31 +0000 (UTC) Subject: Re: [PATCH v2] x86/paravirt: Drop {read,write}_cr8() hooks To: Andrew Cooper , LKML Cc: Borislav Petkov , Stephane Eranian , Peter Zijlstra , FengTang , Andy Lutomirski , x86@kernel.org, virtualization@lists.linux-foundation.org, Boris Ostrovsky , "Rafael J. Wysocki" , PavelMachek , Nadav Amit References: <20190715151641.29210-1-andrew.cooper3@citrix.com> From: Juergen Gross Message-ID: <49462c78-f0ad-cb18-7cc7-2a3ce20c7006@suse.com> Date: Tue, 16 Jul 2019 06:15:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190715151641.29210-1-andrew.cooper3@citrix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.07.19 17:16, Andrew Cooper wrote: > There is a lot of infrastructure for functionality which is used > exclusively in __{save,restore}_processor_state() on the suspend/resume > path. > > cr8 is an alias of APIC_TASKPRI, and APIC_TASKPRI is saved/restored by > lapic_{suspend,resume}(). Saving and restoring cr8 independently of the > rest of the Local APIC state isn't a clever thing to be doing. > > Delete the suspend/resume cr8 handling, which shrinks the size of struct > saved_context, and allows for the removal of both PVOPS. > > Signed-off-by: Andrew Cooper Reviewed-by: Juergen Gross Juergen