Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp305987ybi; Mon, 15 Jul 2019 21:16:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqw13lNo3gYBxiFP7aU5Y8bQF9Xibl6wuIBnKqsACK2TLqD09HlUI9Rva11CLLrAAMuDT71X X-Received: by 2002:a17:902:8205:: with SMTP id x5mr33080487pln.279.1563250601033; Mon, 15 Jul 2019 21:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563250601; cv=none; d=google.com; s=arc-20160816; b=LEIzEYtaFViTh2XbbGv+yEEjWPlM02pBhpO8YCa0h3XMjlai4lxiw9oRisV860u3Sb MiKGwjAmzOKdOCv3J4IhcFHrTzDnRvzJTDwkX3mWL/+3WVo3qRNWAVGj1IRcs32onLVt Y7aAoHr/SNWrPx9GS/aadQExmPJTpvzPeniWgjTLhL93mu0YPJcXKFMNirwhckneLy5N ExfMx1W5jsILH9LdCAoHef+i8BclKzaUso1K+6nH33tb4cKSXLp1ySLnDr/enQdzSQzo p2M9Ly5xPj6jG5uzWKLA63O5pAYtEZNIWrih50BoGPQ7h9BPRJWpq6VkmYADWoRybRF5 4IBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=odnGAx0AylB/u0ipf/pbKwu7nO5CKwSicyIdkknYb/k=; b=hArghb6eifwWkxpAieNBf7D2+Nar7FbhmQdsWeTbI3xyDwb+/vSs9GUhok7BlG89P2 p4X2kw5ribRBUI1lZKpxIPABZbACvhMAobQ0jAP74/cGzuEwhzplgxlWVCuAian7Ys4K niMzoij1VpCR2HOA38yaAo39eGZ8uAlLY+I9LXO+v29bHHvCg3DzyJWpuHvJno3TCtqD UQDu6jaHZh70fO6izcPRS7sQMttGnrERD38/tg0qpQRGWLbU5j9fnE6vhxfbJqBY0tfE nbpTtjk3By7Cq6eWFU4T8kozIKrkflxqvQDiYJOOo/RnesWrdZanUZvyC3c6eykFQQ/D Uh3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190si19260275pfb.127.2019.07.15.21.16.24; Mon, 15 Jul 2019 21:16:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726631AbfGPEPc (ORCPT + 99 others); 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