Received: by 10.223.185.116 with SMTP id b49csp3654939wrg; Mon, 26 Feb 2018 03:53:37 -0800 (PST) X-Google-Smtp-Source: AH8x225xP250g3O01lPessgvEUMgr5s2YcA1th/sPSK39oCV8ddSEqoztVg5S/yk/Dh5abPapMio X-Received: by 10.98.152.86 with SMTP id q83mr10288250pfd.218.1519646017113; Mon, 26 Feb 2018 03:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519646017; cv=none; d=google.com; s=arc-20160816; b=Y27NT1fNTRibsTPU6161DXcn97kMCZVZkcNYOr6wvI8FLSDQWe8EhoHgEwhbZKv2qr t4UQE4ul5Uzcf7bNbFmmdk0A27gIcu/Zmq5ooZqsLy38F2+c13Kb5HgPD3C/VB8thbvK eKRMLSNJrjrvHqXLxbffBbzKIMU9hNyZ7INOrA7hGuu9dpWt4cyYPvU1rgvIGVYMMRNg YN6cy9tHMNv9uyRFq4nqM9s5FYsd8M/7bajRgwWSgQywnFJkcr31wFpncrVaGKaYZluJ +i3f59egpToyjwyi6AjKwLikqtlHIVnanjPsVv/tpOq5e4jODsGaIF9eYEGwZa1zUv6C Gabw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=qnTFKB0r3VSKynW5WneewA9pM08e1ZS93lH4+3D6lGA=; b=iXiatuzIc7io1m589q+OAuKHM07HpxtwG0jLfgqdhsa7Lk6eOvKeYxWpxm8WLZHUN5 RRM2B8H+X6RfjHkp6GtcFb6opP26/ucVZ2br2YBp3kMKOawiyx/2yXTxIEh60LGZrWvW SaQQ0Fksx7LlEqWofQPUac13vCIQP82gygo42FZ1Fq5OfwgYhF6J9nw6ylgXfe+GWWeM yesAv6+MpWGYo9m+QS92m5oRk4463iPjcSMWB+EElCau0Hy2MPe1AH4qKjbFuQhcNrZj ZiIM2N3xD1CuInYTkbf19d/Rs2xWrF51bBuqydsJ9Z9ddY7M74aP6l4hFJ7sxXw99cZY +GKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dFLg9K0p; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z124si5413978pgb.811.2018.02.26.03.53.22; Mon, 26 Feb 2018 03:53:37 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dFLg9K0p; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752854AbeBZLwi (ORCPT + 99 others); Mon, 26 Feb 2018 06:52:38 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:44132 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752373AbeBZLwh (ORCPT ); Mon, 26 Feb 2018 06:52:37 -0500 Received: by mail-ot0-f193.google.com with SMTP id 79so13081876oth.11; Mon, 26 Feb 2018 03:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qnTFKB0r3VSKynW5WneewA9pM08e1ZS93lH4+3D6lGA=; b=dFLg9K0pep80UGDIeqoE3WmOV1m4AfbW8ZF19XULM3m8+H0PI+THG2+EKI9kQfjnYB MnGYGd8iM5MEaKcUXUxPz4/UWcGHQr2wlchFWZClGiqrF8Ad49OOtl8p3var1pos6yeY y+SP4byEW4jgjp6QPip/huzvCOKWfhOSgsGjwVjAPr6e57uWK4PjPLdIWqSx7vTLZwkT iCpd9fQ4pLtf2XXC07GxyndicbWw+iZtaWTnDKCZpS9kWRJqdTWdLsN2KQFFYuajEDeS runJ5MRS5K59NksTzep2fg9Z0xDf0N4o0QZRbadIOwgtGaW74cj+bMo40134ZOSGTDRj EoEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qnTFKB0r3VSKynW5WneewA9pM08e1ZS93lH4+3D6lGA=; b=rjmUykwDSdkbBrEbtqNs8aNwiARTdNO5YiURsNJQ4H0XXCuOpOuZ8gmU+RNmyy+Mup oeLfwwtXX2ng0vpgKHKXr/j1GA5iHbmpRRyzWvmG3aPB/2RNEtogkuUUTN7IdcikeZrh 4qgx+MEszg3pFd+F/nHmltaAyNjhnmahJNj1fbKCnPa3PCBXiy5VffoyRl0YrsEyNIIt 6u7Brnjjnj8Pb9iSYr88Prz+8h9DQrw+IhmtKJ77fXd1x4/ipCW6T8RWrli8SOarU5Ni wAiTPk6Cp8LNHY1osC64SuDCpPglEkXpcRO3Owr8ut3r9FLUIZWHgBZohC/xlHFhEaEZ 1qGg== X-Gm-Message-State: APf1xPDvV00dOgGViqU7eBnsMsRv9T4nM4DEviDOY8xDlYS3oRC0hlnY ERPd8YmIYLzVW4ctPOOjNZK44kXO27F6nm2vpGM= X-Received: by 10.157.10.227 with SMTP id 90mr4699492otq.17.1519645956520; Mon, 26 Feb 2018 03:52:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.208.10 with HTTP; Mon, 26 Feb 2018 03:52:36 -0800 (PST) In-Reply-To: <20180226114409.GD4377@pd.tnic> References: <1519629838-4898-1-git-send-email-wanpengli@tencent.com> <20180226094148.GA15539@pd.tnic> <20180226104921.GA4377@pd.tnic> <20180226111630.GB4377@pd.tnic> <20180226113000.GC4377@pd.tnic> <20180226114409.GD4377@pd.tnic> From: Wanpeng Li Date: Mon, 26 Feb 2018 19:52:36 +0800 Message-ID: Subject: Re: [PATCH] KVM: X86: Allow userspace to define the microcode version To: Borislav Petkov Cc: LKML , kvm , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-26 19:44 GMT+08:00 Borislav Petkov : > On Mon, Feb 26, 2018 at 07:37:32PM +0800, Wanpeng Li wrote: >> The guest write is ignored as the original kvm implementation before the patch. > > That will never work because there's no virtualized microcode loader. > Which will be a dumb idea anyway. > > Goes to show that dealing with microcode revisions for a guest is the > wrong approach. > >> Hmm, the apic_check_deadline_errata() example can be referred to. > > So that's basically what I'm saying - fix apic_check_deadline_errata() > to check whether the kernel runs as a guest. Both I and the link agree with your opinion. However, it is hard to fix all the guest images which have already been used by customers in cloud environment, anyway, this patch supplies an alternative way to work around by host admin. Regards, Wanpeng Li