Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp697102imm; Wed, 13 Jun 2018 07:01:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKQ5Yx0aHK+2xFSmIv6ZYwcbwhv5mBnPeZIJdboQiYz9qSpARSm/jCzbS4XOVv5BY+RsiOU X-Received: by 2002:a63:7a4a:: with SMTP id j10-v6mr4229096pgn.421.1528898514429; Wed, 13 Jun 2018 07:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528898514; cv=none; d=google.com; s=arc-20160816; b=pF/eFJfO/jbOgoiwUy1igoCAWOJrruyzgFnm87TkKbyz9gXgcLnpqriHcO90Xw+C5I 09t4q2dWfh6uCLhs5BUPYdpu/oaNngEWL3Ahj+d/lo42eoXblJQotMvJWMvIxWxaclMY 51O7AcTjkGB9lkWMTFwWbVZkw/VHGWVWS6fgA4eySvs4s4a2P3OtCS1LeeY5DWwbryjj zfzADIFhjfGdL/EXkcvsrPzo7V2FqhIpwSbfUAjg0R2dPowk+X7LQxYPX7BBb765HUsV WCOtZZYQElJ1NWw5NlF/Ou0EE7TpR6VhYkEG/op2MTV3lD3Yz5+D9DpLdfqymcy3gTSd zgYA== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Y+NxCB/JxznDaH0WU/TqeygV0MEcoJ45yCWrp8f8T0g=; b=P51U4kyiABoXKhacSYHHLrDsw5NMJykpeUrkgKH7UvYQqhZ6njCgoD2Gb35/8CF+R/ SwCtZL5MM5FDR82Kltxf21xUknjJ6OH228iD1pgypKapRn8u+aSS22qw8UwJGxTWpmPP iYLGsnlpy1LpEWq6yN0E+B7C2FFJZ4JG4ZRDmpGg9QLty6C45blN7peglX00jRMjx0Le V42nNj1G09OxCbMNO+2pZ3za1iY5gnkh7ZEJb3Xl0mJgbE/UNepJKtzoCJe8uGv38HN9 zP0gmA1tkG50FUcD/7kAuP/51I+t6HX+wwOXaUaiMOq+pzzc4nqjEAb14x/To4SsHmyK aFPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YLGWeG5+; 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 f21-v6si3065169pfh.33.2018.06.13.07.01.34; Wed, 13 Jun 2018 07:01:54 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YLGWeG5+; 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 S935724AbeFMOAv (ORCPT + 99 others); Wed, 13 Jun 2018 10:00:51 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:55796 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934436AbeFMOAt (ORCPT ); Wed, 13 Jun 2018 10:00:49 -0400 Received: by mail-it0-f68.google.com with SMTP id 16-v6so3805069itl.5; Wed, 13 Jun 2018 07:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y+NxCB/JxznDaH0WU/TqeygV0MEcoJ45yCWrp8f8T0g=; b=YLGWeG5+E1Qhr9lZHyOyhAY6R9IcDon+/PJERr1mHktKAoqqN4TK4xoZrE9tpVrtRf OSH+pAx5e1GWYHHuRYMyXTpN+mD+iesX+60IaSFNwRfXs+SwhU+3ukqMZPqmAqblbY7m QzZWG8Z4d6OOVZADWIX1jSE4/Q5oz8qjEsYq0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y+NxCB/JxznDaH0WU/TqeygV0MEcoJ45yCWrp8f8T0g=; b=lvUXyAjT1JT8HMM63VdU2wL+bmEP5FHcLmn8+RHfjoyXn7lD/p8ce7W6nsmzJ2ZRwO lnmsfBknjqSRMIPRkhIFGTM54FyUsXKWjBgZRCGrsAC4srQLIAK3qInHQJl2qNsMyVf+ xOqT6X//v3IuKtxtYKQyjnr37E1dk9dYGNDRfTwi/kpa61WCuBvylqQ/jYHJ4oAit+2a ys0md86e0OFXO7H4R43kQpJ4hWg+RplqRq0xB4jogDULsuXM6Rq0ZbQFtM3NPBDu/iU8 X0yQyHwqsYbequvfho0D0fJL32DhlVaRdT9uNLlI/7qm0YwEOOeKo6r1BipqvHAed5WI UYyg== X-Gm-Message-State: APt69E0MlnFPReH0OtE2i6foYF0RxkygSqv9IFxRvO7Si7sV/lquVlN1 0jXDeKK4Ws6FaQG9KzgKckSovQviE14842Fs7rI= X-Received: by 2002:a24:8046:: with SMTP id g67-v6mr4676034itd.16.1528898448641; Wed, 13 Jun 2018 07:00:48 -0700 (PDT) MIME-Version: 1.0 References: <1528812229-53043-1-git-send-email-pbonzini@redhat.com> <6570c00b-bbec-82c3-16e2-1ba96d8e263b@redhat.com> <87y3fjossx.fsf@vitty.brq.redhat.com> In-Reply-To: <87y3fjossx.fsf@vitty.brq.redhat.com> From: Linus Torvalds Date: Wed, 13 Jun 2018 07:00:37 -0700 Message-ID: Subject: Re: [GIT PULL] KVM changes for 4.18 merge window To: Vitaly Kuznetsov Cc: Paolo Bonzini , Linux Kernel Mailing List , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , KVM list 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 On Wed, Jun 13, 2018 at 4:00 AM Vitaly Kuznetsov wrote: > > This was reported before by Arnd Bergmann: > > https://www.spinics.net/lists/kvm/msg169536.html > > but it seems his patch got lost. So I think his patch is closer to what the code *should* do. Mine was a big ugly #if around the whole thing, but I really think that *all* those if (static_branch_unlikely(&enable_evmcs)... cases should probably be using IS_ENABLED(CONFIG_HYPERV) too. Preferably by simply having a helper macro or inline function to do both tests. I intentionally did just he big brute-force thing, I'm hoping the kvm hyper-v people will clean this up. But obviously this also showed a lack of testing. Linus