From patchwork Fri Jul 26 11:51:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 11060865 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0499213A0 for ; Fri, 26 Jul 2019 11:51:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5ECB28A96 for ; Fri, 26 Jul 2019 11:51:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D953A28A99; Fri, 26 Jul 2019 11:51:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E81128A96 for ; Fri, 26 Jul 2019 11:51:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbfGZLvS (ORCPT ); Fri, 26 Jul 2019 07:51:18 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33786 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbfGZLvS (ORCPT ); Fri, 26 Jul 2019 07:51:18 -0400 Received: by mail-qt1-f196.google.com with SMTP id r6so48037875qtt.0 for ; Fri, 26 Jul 2019 04:51:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=9gHO9TyKSj0CYwPdw5b5x4szapbbJYZPZ0dkycmRYIw=; b=GTVyHsBG+m80ttBkc0fXX2zuYsL1a4wnVz15YflDRYUhDktcZNpHSTXO8SPHcrPN2m tDkSbBozSf8oaB8BkQwOSi6xrxA7d7n01Kw01Ymt/bz3N3eEPRNZ25aSUmRWkJ4Ot+Il 9LOPPCNzubkr+yAT6m8VuHjG9PoGRzmAuHnbWW6/JTYFb3NCxllRXDdnmJFRUTqB9k5d JRJ5pGnDTuzF2AZD2nOadf4jX2wM6Z4kfLWqoPgZuopcZ6RTKPU4+FnFcpjUcyoelvZQ 3jD6/UN10dF26FPp3dfKmIev08YnQIOBLD+ui6Oso8OCr7dNL5huSs0bRNqkLUHV4/0P yy8A== X-Gm-Message-State: APjAAAWL69gvfkFEts3tEIo1pD0bB6mUwkVohBayJIeBXZZo36v8bXtz EqokgCToDhhvXCrN+VjwY82Pvg== X-Google-Smtp-Source: APXvYqymcbOMEQ4lUl13pE8Gi7ZsmsaJk9G/++ds4UPazH2mBxi16XyvfrDkgsSarz23FJllDH4Qvg== X-Received: by 2002:ac8:520e:: with SMTP id r14mr65932257qtn.50.1564141877674; Fri, 26 Jul 2019 04:51:17 -0700 (PDT) Received: from redhat.com ([212.92.104.165]) by smtp.gmail.com with ESMTPSA id 39sm28940576qts.41.2019.07.26.04.51.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 04:51:16 -0700 (PDT) Date: Fri, 26 Jul 2019 07:51:12 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: Jason Wang , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org Subject: [PATCH] vhost: disable metadata prefetch optimization Message-ID: <20190726115021.7319-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email 2.22.0.678.g13338e74b8 X-Mutt-Fcc: =sent Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This seems to cause guest and host memory corruption. Disable for now until we get a better handle on that. Signed-off-by: Michael S. Tsirkin --- I put this in linux-next, we'll re-enable if we can fix the outstanding issues in a short order. drivers/vhost/vhost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index 819296332913..42a8c2a13ab1 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -96,7 +96,7 @@ struct vhost_uaddr { }; #if defined(CONFIG_MMU_NOTIFIER) && ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE == 0 -#define VHOST_ARCH_CAN_ACCEL_UACCESS 1 +#define VHOST_ARCH_CAN_ACCEL_UACCESS 0 #else #define VHOST_ARCH_CAN_ACCEL_UACCESS 0 #endif