[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH 2/2] x86/vmx: Support for CPUs without model-specific LBR
- To: "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
- Date: Thu, 12 Jan 2023 01:39:05 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.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=OaWAnVeP0JWOVMEzqs0hGmjrGi1n6DfEAZ3Zh7ndx00=; b=LBJXJTesMj5ZOrlIUj+4D0mVwckRTvh6mW22pLgGqoheo88lgFG36Scf85kRWW/1HsDrIev3a1sKukslZLSuVw0LxzEugfzkaPzvb843fFJr46Gutvwp+O4qTBNOBdPtsU/zJfoMyt+Ni5dgfLdkrN2Or0ztap7/+AEi7Odz2TPHEHJNAhhe4Nr4QKEflBJru9zxcm599udmVaQ9nr91nsoSUs89Y6iHcje9xGWZTaMgOOx8jUPjvxi9l5BFCkksesba0ooI4034ELZhdxg7zL6vqeu+0WBBnwr20JMmRVSz4CybSZw/T0FD27zecS1KiBmwHS7kNB12bKjVXbKvDQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VCJxHNuT55VyAf84qkzjRi65dZeqdekhSE7xqJyAc1bbyWhImtoGe6P6sNXUB4oasYKzgDlBWO2QpgRbm4KHlZdcVI8T4qrxMui+9po2oFu/+zKgD4qqfAWxY8vGkEzzTor2+I5CCHchsFbMtrfw6Yv6c3b0PoSbXNTGEVuuvv4qK2nu70PEykodH4R3aUcUDccnVuUgvG4qYs6LKYNj9Gnf0Iw0c1om2BWc2veFPGrEbw35vKoVSf/yP0jZI5Sv2RRsmiVqGvkfbpjgxxlVdHFTyKCNK9es3cTozCES+5Dmh+eT/omkO1m9XN9BeND+Z2TuGVdGd2dGO/wL0zUNcA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com;
- Cc: "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "Beulich, Jan" <JBeulich@xxxxxxxx>, Pau Monné, Roger <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
- Delivery-date: Thu, 12 Jan 2023 01:39:15 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHZJCMek6T83CtFrkaQg0ivmixH/a6aBOsw
- Thread-topic: [PATCH 2/2] x86/vmx: Support for CPUs without model-specific LBR
> From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> Sent: Monday, January 9, 2023 8:08 PM
>
> Ice Lake (server at least) has both Arch LBR and model-specific LBR. Sapphire
> Rapids does not have model-specific LBR at all. I.e. On SPR and later,
> model_specific_lbr will always be NULL, so we must make changes to avoid
> reliably hitting the domain_crash().
>
> The Arch LBR spec states that CPUs without model-specific LBR implement
> MSR_DBG_CTL.LBR by discarding writes and always returning 0.
>
> Do this for any CPU for which we lack model-specific LBR information.
>
> Adjust the now-stale comment, now that the Arch LBR spec has created a
> way to
> signal "no model specific LBR" to guests.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>
|