Received: by 10.213.65.68 with SMTP id h4csp379897imn; Tue, 27 Mar 2018 00:32:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELs2hnzzglcePqbAvgFAlIBZ9h5FBk4cqNep2zT/1xW5xBhA8ydn7Qo1O1tD/IIOqte76V/X X-Received: by 10.101.67.198 with SMTP id n6mr30702721pgp.150.1522135933804; Tue, 27 Mar 2018 00:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522135933; cv=none; d=google.com; s=arc-20160816; b=p+Sk5U/zJUAd1X9A7BKoKEpjcVwvYf76Keso+zKD2Nev0BdU0JFGjmkQ6QtGKX3nzQ E8l8OWsY3CYwIlI/KOXQQ6mj+g1LGhiWBBg8o9bQKoLfnX1R7YwurC7JogGtBAFYGhQv 1XT0fhtTG2rhuZ+jFmDRKV1Z30K9pF32JG9kutOP8+8t4SPkgHUlcHK2307JDrxmmts/ yihFRiL3qckSjzWOWEWb7wn3CK3dL8yrH3MLuNLGrB4QoqG6jCTF+wSFDIAYVur0lGSm lCx7cO/1xrF44AQze2TsOmHbkNLK3TaeyuJOv6SG9tBpKAdd3HBtilVyZcQGFT1c9tc4 Loww== 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=jny9gORWxjyrugYlUwNpbgukin61sNLtD8B6GHIeut8=; b=KHoNMo25DRTnyn6/cq2qaKtKOm0Tn5rm3f2tW1A5nKL8iERvp+D3PRD5mv3g4Z09tr V18t7zaBkH/G3Ly3JJ6H/jINm4XTFxcxdLNPH4x6wZiCdSoRrONyvUhINETNA5pjR4DB QmDdKqkoQAiky6QUBo+uMTYtNQztWpkcNHQQEJ+CFTYXDNQLXEfsGAbKtd2y2L2LBRpQ vdEnnIuyle6fbtpgOCQdHb51pW+soOm1WCmL/5C7HJSsygmiBMFR+lYYDRMHsJhqu1gK fjZqNSJu5tGUQJoxrYFgmsPpgtyg71xTB0AIerOWEibJ3Q7FAot9KVuq86lpZTIg1tKt P7cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GD1DNbUo; 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 j8si465689pgt.582.2018.03.27.00.31.59; Tue, 27 Mar 2018 00:32:13 -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=@gmail.com header.s=20161025 header.b=GD1DNbUo; 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 S1752048AbeC0H3c (ORCPT + 99 others); Tue, 27 Mar 2018 03:29:32 -0400 Received: from mail-oi0-f49.google.com ([209.85.218.49]:40377 "EHLO mail-oi0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751913AbeC0H3a (ORCPT ); Tue, 27 Mar 2018 03:29:30 -0400 Received: by mail-oi0-f49.google.com with SMTP id x9-v6so1879114oig.7; Tue, 27 Mar 2018 00:29:30 -0700 (PDT) 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=jny9gORWxjyrugYlUwNpbgukin61sNLtD8B6GHIeut8=; b=GD1DNbUou1u6uftLVLvxqIsOFxjfJe0giLcQAULX/+sAOwt1tAdBPmFtqJIAMKZpio XTgrUgN8i0zrJOlvTHmhRfbmfrYxUJ0WZapbgakemFOQ+JCZy1lEkiBw/kQq6BFqiuox kWIemo3G8AI8wOPiTrI2hG7ByM6aLfMxIYWxI5jr2wJv6QAHceimyQbfBxBHbS3FJUBK ciZg7Ai1PbBtYFtk+JCRQ+spLtkWQikpR3rPyXRDXZ82yC20fwywJ/t7zKxS9a5srV8b PHetWlYHulBqpt3xLCPAk0esz1qEszUj03HCxpiD0FnPoVLOEHd5wC1340HqAk0PyfJ7 7dGw== 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=jny9gORWxjyrugYlUwNpbgukin61sNLtD8B6GHIeut8=; b=IvtmBor5E9ilCvot4BoFyEddq8ebudkmgy9oSuSLvOp/oFr98HlZ/d9/MLt82PT2VB YGybwB0JAzxZbrVpmXlvD9E36gnB/1cneq3eOIOvgGj/ivFNdMeIT7rC0KlDKXy8O8b9 qddoq73SDD/cY0rvsdDmd/vjYjbUIISKA1ZZNwcxydpVm3t38w449j3Rzyp/nr3LXHLz 4+efawQSoJAdnHRsVWhK5b9j1kJUcrITu4VxUg2vDceZ2NTRRqFTYbWLFKKQCKUOyB0F 0BcZsJqxY4kqiOClGEgKCOmCOp+Twv0ydW/GDARVGzcSZkg46dtWv2q5TBdbAseAHAv4 ctlw== X-Gm-Message-State: AElRT7GRCOg/cs+6yR1W0igTL8tXPcWzmCPTkCV9mIvyRZtrqiu0xuJn UqiHObAvXHty90EUXpPvbkvlX2+PrhJMjOvvWLs= X-Received: by 10.202.26.7 with SMTP id a7mr25268178oia.267.1522135770270; Tue, 27 Mar 2018 00:29:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.210.78 with HTTP; Tue, 27 Mar 2018 00:29:29 -0700 (PDT) In-Reply-To: <0ad9fff9-6ebb-2d63-5c9f-b9aba7d619ac@redhat.com> References: <1522116735-4861-1-git-send-email-wanpengli@tencent.com> <1522116735-4861-3-git-send-email-wanpengli@tencent.com> <20180327044020.GB16974@char.us.oracle.com> <20180327045558.GC16974@char.us.oracle.com> <20180327051840.GF16974@char.us.oracle.com> <0ad9fff9-6ebb-2d63-5c9f-b9aba7d619ac@redhat.com> From: Wanpeng Li Date: Tue, 27 Mar 2018 15:29:29 +0800 Message-ID: Subject: Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction" To: Paolo Bonzini Cc: Konrad Rzeszutek Wilk , LKML , kvm , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Andrew Cooper 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-03-27 15:25 GMT+08:00 Paolo Bonzini : > On 27/03/2018 07:18, Konrad Rzeszutek Wilk wrote: >>> I think a global module is enough for testing. >> If so, perhaps have it wrapped with #ifdef DEBUG? >> >> No need to put code gadgets that won't be utilized 99% of time. > > It is going to be used a lot in testing, actually. There are quite a > few emulate.c bugfixes that are hard to test (see for example the > syscall eflags.tf bug that can currently be tested only on Intel) and > having something like this can only improve our coverage. > > #ifdef DEBUG is almost always a bad idea, and though I agree that the > commit messages can be improved, I think the module parameter is the way > to go. > > Wanpeng, can you also add it to svm.c? Yeah, thanks for the review. :) Regards, Wanpeng Li