From patchwork Tue Aug 14 01:37:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 10564977 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 BD8801057 for ; Tue, 14 Aug 2018 01:39:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A59132944B for ; Tue, 14 Aug 2018 01:39:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A0EA29496; Tue, 14 Aug 2018 01:39:25 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E8F1E2944B for ; Tue, 14 Aug 2018 01:39:24 +0000 (UTC) Received: from localhost ([::1]:42039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpOIu-000776-AH for patchwork-qemu-devel@patchwork.kernel.org; Mon, 13 Aug 2018 21:39:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpOHm-0006H4-Pm for qemu-devel@nongnu.org; Mon, 13 Aug 2018 21:38:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpOHj-0002GU-KL for qemu-devel@nongnu.org; Mon, 13 Aug 2018 21:38:14 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59915) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fpOHj-0002Fw-Dy for qemu-devel@nongnu.org; Mon, 13 Aug 2018 21:38:11 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C3EFF21E8C; Mon, 13 Aug 2018 21:38:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 13 Aug 2018 21:38:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=mesmtp; bh=T+1TpsZBYdy07GQadwRcO7v+qkEEdi4/Bk9RjU teKGo=; b=X92zUEUzwOhAHL1fAAbpAa1T00jNboZyE0awPjYt5QKz4moDf4sPiW agnad3slrwwSyU1gUmjiAeB2Okfijzt9rerZIw6YRc7kFS9eA3rHwkkB8Y7dtmO0 jV2wMTfTRAbiMqhezh2xgFMV5dvQkBllpzF7udGqhvu68E+JhvfMc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=T+1TpsZBYdy07GQad wRcO7v+qkEEdi4/Bk9RjUteKGo=; b=bNxD5FOnSnenRPC0rze1PS9H724SrCdBy LPOyrBgyyoCAVlkNBC8ciwSu8Ag9ZXqH1Qq4XtAu54RhjXqSrFOUIWOr37zfjHxT NmAdzugL6iMIbgCTdmnzTvpPFA9Z+KCHBqn4zvUbmZmtDRYim5Yttr6GCMGcdoj4 daAauCnzUpIMiL+ckED6nZlVBr5EFSMpQVcLbgzvC2QSUICcB0WnJZRVM0NczxEp FnpVd5r7JKXIxIftbwH8s6Is5ZhBekBMQcTRBFRaA0fOOmAUFoceZFtfPawBEOdw CrkPhXbzkeaA1PBpKesP8iORnlcm7JqO++Qjalz8fhG1sWlh7QvhA== X-ME-Proxy: X-ME-Sender: Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id CB66DE4621; Mon, 13 Aug 2018 21:38:09 -0400 (EDT) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Mon, 13 Aug 2018 21:37:57 -0400 Message-Id: <20180814013801.26036-1-cota@braap.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH 0/4] x86_64 mttcg X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , "Michael S . Tsirkin" , Peter Crosthwaite , Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP With this series I can boot a busybox image and several Ubuntu images with various -smp's. The speedup we get is in line with what we get with other ISAs, e.g. -smp 4 takes 34s instead of 1min with thread=single. I've run this through the Valgrind race detectors, and the remaining races reported seem benign. I have not tested i386, so I'm not turning mttcg on for it yet. Patches 1-2 comply with cpu_get_ticks' documentation. I'm not too happy about effectively serializing rdtsc, since Linux guests call it very often (for each vCPU!). But as usual, correctness goes before performance or scalability. You can fetch the series from: https://github.com/cota/qemu/tree/x86_64-mttcg Thanks, Emilio