From patchwork Fri Mar 7 19:37:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 871261 Delivered-To: patch@linaro.org Received: by 2002:a5d:64c8:0:b0:38f:210b:807b with SMTP id f8csp932693wri; Fri, 7 Mar 2025 11:38:07 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX80c43xuXjLo/th8laiFCooOW53iJSaY5S1YpKpDM+8pXgnoH/pwyg8B2qo1DOCNc0zfBIeQ==@linaro.org X-Google-Smtp-Source: AGHT+IGNZr6bs4TMm6tMgZbfpYEgepBQN5ltrSbXBznrdn0QhoYNPmDBaMHEkSrtbWa+ie0+Yded X-Received: by 2002:a05:620a:2b87:b0:7c3:c13f:5744 with SMTP id af79cd13be357-7c53c837abbmr92657685a.3.1741376287681; Fri, 07 Mar 2025 11:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741376287; cv=none; d=google.com; s=arc-20240605; b=BXNt+NOamE8avMzNnZl7qQhGsgUBvBZJH1Sam2kjwKzzqRacXDobNA3tN6rJV+s+7b Hg2YmjkccAuptROZ0+6dLOYReOCY9EqunVyDaZgaay9xDIyZAwb2ZV2Zpo7X3X67G0XR OUYCYYJkUJABVj70+UcOGJxX10YlZwU0s8W0t7lEAwBvH+BpPeTbybZelchlyWpq485/ ynMzU/KLAG63bzWfn9y6abLD/1+wNQt4hrI4/RkNDnfK2lUbBEwd9s3jXXbyGTp0HqC2 G8bjIYRK5LIY0xZ7U5zKjkoaZiFTTA/bP0ciaJyOxZZq5y30QjZstgsCX3bOX9rHJHEo FxXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xUvuEjETtAwgjY+HHVzD3fRoYrhNXj1rMDKPunM+tus=; fh=6A2EuSh11aKMP/qbaWluvngkGosKumnmf4RXkewW5Y8=; b=Iy1CpuKwhjt3VNDfthYr4Xh30He26rnpK3tZV20fm2FCFmByx1srzApAZ78CxIU3/W AR5FGKAgRmOQ4i5Mlb8rb6Y5S0D9Lc0oeyc1+q/KuFY/lKH9+B+DDj/UjsWWgJYEObEw kzcPBsZ4yss6hNjiBH2Zz69vZvYs7ROMpslu99pcNW4OfdDVewdiWeDKtCi923mzOp4c sahUCsscGSHOhQlE6upmIqvHOE1LcNFAflWON6UP2s7AwutNhXZyuIAgAdOC5StvEG+z EFccAno1Fv41jv4/lmraC9wQJU2oiu4ECOCheZRE2lTxHuD7iALo0ZpmsSVi5pwcvI85 +82Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=glPlM0CL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c3e550facdsi418555285a.376.2025.03.07.11.38.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Mar 2025 11:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=glPlM0CL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tqdVy-0000xU-0V; Fri, 07 Mar 2025 14:37:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tqdVj-0000ur-Nc for qemu-devel@nongnu.org; Fri, 07 Mar 2025 14:37:38 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tqdVf-0007Wb-Fr for qemu-devel@nongnu.org; Fri, 07 Mar 2025 14:37:30 -0500 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2ff85fec403so1438601a91.1 for ; Fri, 07 Mar 2025 11:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741376246; x=1741981046; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xUvuEjETtAwgjY+HHVzD3fRoYrhNXj1rMDKPunM+tus=; b=glPlM0CLgdTTJzCYQSUqfKBKnnU7jFXVlQ0jeBOhtK6NI6SnIaPEaJbtK8NwCI/42v l/BQbSKp+sO6s9169Z0MrpcaUwSKxdKpW1nq/EFFe/6auZnqemh9ch5vMSCq9z2SyzB+ kx7BgFh20ETGlh1TYPAenceOTKWTog9nTwyYeVujlmtiMMnI6ZAS+IyrGUBLzCKfzE/W Kp7beFu5DJKFXSR2UO3fuQ24ZdMSRpeSmHpiRG8mZ5RlfNbFhFbUMFj4ITCdzcJVSyq6 Gs6th6AuJMaUIfOgOS4zvu9L8n+IJjo67MQLSfA6AO9UVWi3p+n2uKlRHxBc80oIe0lv TyjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741376246; x=1741981046; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xUvuEjETtAwgjY+HHVzD3fRoYrhNXj1rMDKPunM+tus=; b=HeA2KVy0cO1JjLgQdoZViTwLkZ2f62FDAr3cSmK9kub78NRR7Z4Ok1z5AWno9m7OCw HVhQdFFkVufmU+UZgdCj2EhcxgEH/wcY1GlykoIXHqEW7a8pag8j0aNJrUbXIP/Mt7JQ G3w3wgbVvvNeIeHVDSALcAqW4yjcMknEqSzg5WOYukgmD9bWrLkQ1afj3NVah+XLodUD n5egiWD8PG3ulHjlkvgJ0kLi7kEYk0uEWYl0p+GFBEqcihj4a+ZCuZWp5g0ZE1YDRVM7 hAWTfTSDg3OOb4pWhzS2/IoTw7Rg0li73YOfzqVVbJyzwiUdE7oZk2BAlBtLNS4ufNkz bXog== X-Gm-Message-State: AOJu0YyhB1lXGwv+oHcyKCeQ6oBF1zzNcrFXH4/0uouj4BPIbXWsgJjr ydkZeUuuYl/9+xmtghhVF0TSJmvoLm6WvKLvCDLB2ehESiwNX1bLECCScCJkZMjyG+XOw/K6hrX f X-Gm-Gg: ASbGnctG3TDlPrmhpuSWw28USg1+ROEPUxk0nhY/EovoL/k80QacBTeXJ4vt9bgZgTc pWBRek3Ud2kDwqpXFxmn5TfABavKijUe3Onu/uAS7nLk2KTUtQDfmSgDzgVpl2w3acufuUXrHq/ OqCxKsloK6xrsUZo0Wq/YF7AsVDSs5zdiWoffWCU+SwUlZjnpjgbiSAUSDGK5/yC8nqXa7xrOcf IWimzLTMma3hkLuP/m+TtkOyCRiEvon8q+/GchokvN0GGKcX5f6YMCc29nX1MKPWnwd5H+vQIy2 ZvXBicLwEzesxI3jRGdgCBXzNYu3EkYkNVp4gGmXsVCb X-Received: by 2002:a17:90b:180e:b0:2f9:d0cd:3403 with SMTP id 98e67ed59e1d1-2ffbc1ee5aemr1105732a91.16.1741376246136; Fri, 07 Mar 2025 11:37:26 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ff693739ecsm3821757a91.26.2025.03.07.11.37.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:37:25 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org, philmd@linaro.org, kvm@vger.kernel.org, richard.henderson@linaro.org, "Maciej S. Szmigiero" , Paolo Bonzini , manos.pitsidianakis@linaro.org, pierrick.bouvier@linaro.org, Marcelo Tosatti Subject: [PATCH v3 4/7] hw/hyperv/hyperv-proto: move SYNDBG definition from target/i386 Date: Fri, 7 Mar 2025 11:37:09 -0800 Message-Id: <20250307193712.261415-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307193712.261415-1-pierrick.bouvier@linaro.org> References: <20250307193712.261415-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x1035.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Allows them to be available for common compilation units. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Pierrick Bouvier --- include/hw/hyperv/hyperv-proto.h | 12 ++++++++++++ target/i386/kvm/hyperv-proto.h | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/hw/hyperv/hyperv-proto.h b/include/hw/hyperv/hyperv-proto.h index 4a2297307b0..fffc5ce342f 100644 --- a/include/hw/hyperv/hyperv-proto.h +++ b/include/hw/hyperv/hyperv-proto.h @@ -61,6 +61,18 @@ #define HV_MESSAGE_X64_APIC_EOI 0x80010004 #define HV_MESSAGE_X64_LEGACY_FP_ERROR 0x80010005 +/* + * Hyper-V Synthetic debug options MSR + */ +#define HV_X64_MSR_SYNDBG_CONTROL 0x400000F1 +#define HV_X64_MSR_SYNDBG_STATUS 0x400000F2 +#define HV_X64_MSR_SYNDBG_SEND_BUFFER 0x400000F3 +#define HV_X64_MSR_SYNDBG_RECV_BUFFER 0x400000F4 +#define HV_X64_MSR_SYNDBG_PENDING_BUFFER 0x400000F5 +#define HV_X64_MSR_SYNDBG_OPTIONS 0x400000FF + +#define HV_X64_SYNDBG_OPTION_USE_HCALLS BIT(2) + /* * Message flags */ diff --git a/target/i386/kvm/hyperv-proto.h b/target/i386/kvm/hyperv-proto.h index 464fbf09e35..a9f056f2f3e 100644 --- a/target/i386/kvm/hyperv-proto.h +++ b/target/i386/kvm/hyperv-proto.h @@ -151,18 +151,6 @@ #define HV_X64_MSR_STIMER3_CONFIG 0x400000B6 #define HV_X64_MSR_STIMER3_COUNT 0x400000B7 -/* - * Hyper-V Synthetic debug options MSR - */ -#define HV_X64_MSR_SYNDBG_CONTROL 0x400000F1 -#define HV_X64_MSR_SYNDBG_STATUS 0x400000F2 -#define HV_X64_MSR_SYNDBG_SEND_BUFFER 0x400000F3 -#define HV_X64_MSR_SYNDBG_RECV_BUFFER 0x400000F4 -#define HV_X64_MSR_SYNDBG_PENDING_BUFFER 0x400000F5 -#define HV_X64_MSR_SYNDBG_OPTIONS 0x400000FF - -#define HV_X64_SYNDBG_OPTION_USE_HCALLS BIT(2) - /* * Guest crash notification MSRs */