From patchwork Sat Feb 20 21:07:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamas K Lengyel X-Patchwork-Id: 12096985 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41164C433DB for ; Sat, 20 Feb 2021 21:08:06 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C3EA464DE8 for ; Sat, 20 Feb 2021 21:08:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3EA464DE8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tklengyel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.87345.164479 (Exim 4.92) (envelope-from ) id 1lDZTc-0000mM-AO; Sat, 20 Feb 2021 21:07:44 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 87345.164479; Sat, 20 Feb 2021 21:07:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lDZTc-0000mF-7K; Sat, 20 Feb 2021 21:07:44 +0000 Received: by outflank-mailman (input) for mailman id 87345; Sat, 20 Feb 2021 21:07:43 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lDZTb-0000mA-5W for xen-devel@lists.xenproject.org; Sat, 20 Feb 2021 21:07:43 +0000 Received: from MTA-10-1.privateemail.com (unknown [68.65.122.30]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 6b5e563f-c885-4b5f-a9f4-a64d8f235e01; Sat, 20 Feb 2021 21:07:42 +0000 (UTC) Received: from MTA-10.privateemail.com (localhost [127.0.0.1]) by MTA-10.privateemail.com (Postfix) with ESMTP id 1F45660033; Sat, 20 Feb 2021 16:07:41 -0500 (EST) Received: from drt-xps-ubuntu.lan (unknown [10.20.151.239]) by MTA-10.privateemail.com (Postfix) with ESMTPA id 7C24660045; Sat, 20 Feb 2021 21:07:40 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 6b5e563f-c885-4b5f-a9f4-a64d8f235e01 From: Tamas K Lengyel To: xen-devel@lists.xenproject.org Cc: Tamas K Lengyel , Ian Jackson , Wei Liu Subject: [PATCH for-4.15] tools/misc/xen-vmtrace: use reset and enable Date: Sat, 20 Feb 2021 16:07:38 -0500 Message-Id: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP The expected behavior while using xen-vmtrace is to get a clean start, even if the tool was used previously on the same VM. Signed-off-by: Tamas K Lengyel Reviewed-by: Ian Jackson --- tools/misc/xen-vmtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/misc/xen-vmtrace.c b/tools/misc/xen-vmtrace.c index 7572e880c5..35d14c6a9b 100644 --- a/tools/misc/xen-vmtrace.c +++ b/tools/misc/xen-vmtrace.c @@ -119,7 +119,7 @@ int main(int argc, char **argv) goto out; } - if ( xc_vmtrace_enable(xch, domid, vcpu) ) + if ( xc_vmtrace_reset_and_enable(xch, domid, vcpu) ) { perror("xc_vmtrace_enable()"); goto out;