From patchwork Fri Mar 7 19:10:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 871254 Delivered-To: patch@linaro.org Received: by 2002:a5d:64c8:0:b0:38f:210b:807b with SMTP id f8csp922082wri; Fri, 7 Mar 2025 11:11:28 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU7ldsJHZi+nR3ecTn61fZCmMA84BQuainTTgTu1J9L6fT+zFdutKd1y1kgszV4NTnkRwiOog==@linaro.org X-Google-Smtp-Source: AGHT+IFuFMhPHBFK5T/ohA3Rj45/poDhv3VaM0Du0jLcuYg5aJsPCWLxTIHER184WIdM6nIlAa/S X-Received: by 2002:a05:620a:270d:b0:7c0:ad3e:84a8 with SMTP id af79cd13be357-7c4e610faeemr739649285a.25.1741374688397; Fri, 07 Mar 2025 11:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741374688; cv=none; d=google.com; s=arc-20240605; b=ZDmNUa4FYx+pHTmcVylLbSvA1WGBUerm0Qb09tZxspYLuWhWnygWaJ205yxIpePaQg Ed+3be/lwg9ABmRAoKtWYevNynDtDPRpuY80gUk0dxOIJtn4WSM5EO9qOjQg1ZbLuM10 Uu7cJ1ghgHvJN4Gr9s4QrphKPUfg10Pz/yt4C+St5s0t7y/DVpJrvTLb5DEQOeEEYhXU zvTPkMCcGgY51jZKBfGPS1hxvUGreSQIEN+STf4nnnicIEaP+0Hk2/3//Jxl0kd/6gAe wMzgbfLiJYz9us464LbQGnZD2eom2Ki9F1ZFx+sVN7oaJhM1PNAnpuDeoCsOcby+RGYK 9R4w== 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=b4ezDBwGtpGBkmEzI/IO6I/lX+jQrRGiA8ytzjkz3zk=; b=WJompyEfsMdKzNnWG7V47PAQjMinvJPMY7yVQ/l/Tlfco2ZAAEaDa9dIPx5pO2+nMb jPy0KnrjWFmTGcuQskbS0S4aAxR8lU2Yb21d4WyNN4jN26sratFYZ/2MllMTdPw/wWy2 XYAM6xJWz/gCj4F5jvsdlLPMooPAa/XVsx79i1JiDI1e7ldgskue3lPiZu6ZyY22Fv0A 9FSzAxArDIp2gkaS+SCjwNG/K/+A0DtwM2IvSxPY0bK2IFr/fe849HGP+ljym9oQFRRG uAGWWAE3K1UnjXRt2h1cO/vnRbBO11CiQ+ZnpeC2b8/O+FHH3qanzC77Rjyjhv6VqSn1 9f1Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oRbZAMpt; 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-7c3e5547344si382059085a.567.2025.03.07.11.11.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Mar 2025 11:11:28 -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=oRbZAMpt; 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 1tqd5Q-0002UY-Jv; Fri, 07 Mar 2025 14:10:20 -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 1tqd5N-0002SS-LL for qemu-devel@nongnu.org; Fri, 07 Mar 2025 14:10:17 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tqd5L-0005tP-WA for qemu-devel@nongnu.org; Fri, 07 Mar 2025 14:10:17 -0500 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2243803b776so14385415ad.0 for ; Fri, 07 Mar 2025 11:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741374614; x=1741979414; 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=oRbZAMptERwKgN9vr8yycj1WTFLoKreqTRL7vPREKYNOoKgutSX306vaxtioCHiBTp Cv/AO+XNohghEumv2rMgaelYiVTRe66B9TRphPiYnYDypn1TwvtSu6oPponddCSVWqiA Tq3yJM382Ogx7TrhVsHFGldwFsYeVqIbn6lSvC6lCYTHYvqX4gc4loiHoi0ngvbNZGFR sXM6ADV3oVq+7bcirJnvnk1AYde4aEpFF6M7pa5eC9Uenrm6PWFNaXCLIySNcfGLvujN 0m4HCisVKVT0aYOLI6HwQKveNet4AUn8pkZxOdeL7D0SQQ4jBiGfDhVN75bk1ifzf8ad yVeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741374614; x=1741979414; 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=WHnMEo+1t76aua4mo1J5ftL0epUSr3JmZ7Rk8fYBY+yRZQQPRC+UbhDzJUB9c/+jeL G1CGeVvgEE3aGvUC3WluFhdvlVQWNVYGMCZlniexGzJf14qYZxqaxCjWd2G9ZlRbGqQp BNjvhpcFzgb6U6cjzHIvi2xG965J+K8dps4CH4/WFNsXfxBP/tcGS09OxqpcY36NA26L nNxHrknsGaLDgUAogIZzsS/oPWdTJKtXxuWtn/RdzLp+ly29dWTPyM18FaXoaAaJTnvX tKFNQfudVY92Spmx1yWa40NNz1gxbKFF6imlbzYg5FSD1KASHZwe/Fdej25iXPE41UvM cscw== X-Gm-Message-State: AOJu0Yz+i993mXLfaAXrsVQLefsrKFcp8rIkrWILv6YeNW2znRmy9eDm gqnZEgU+z4FLK5AdNeektK+ef7uw769frmnqxX0Dx6mznBG8h+b2UmhTahlArlqaFwAzmuxwzca + X-Gm-Gg: ASbGnctPXJSyHaEP2/IFckasUXqlZLCQUjG59yjWV6laZfuEOsMI3iUEnLYOUL/k7UI 5UsojGLStyS5az7IqLDWDesEPfT31M37AkE0FPPByI6eZbZ99WWF1Y+ek+36yKbuz2gE6G4jQLa KqV4Phn6BE2LjG72+C6oiIcOlzQO/48Y40WkckZK3MpIAYTkcf2ztsS+A30YBpyahRrwdemop3X WkT7yKI8MegtBIPeI4d6RCsJNg+6aoueCkw98Dc7G61BMeNO6Ce+ENkCk6+R8cyE6m9Co32Ushm 78KHcwPFBkoksx5e70emifVW8GMrugCSwErej5hV741e X-Received: by 2002:a05:6a00:2d90:b0:736:6268:9ec9 with SMTP id d2e1a72fcca58-736aaadf12bmr6908832b3a.16.1741374614354; Fri, 07 Mar 2025 11:10:14 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736b2da32c6sm1449895b3a.149.2025.03.07.11.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:10:13 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, "Maciej S. Szmigiero" , pierrick.bouvier@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , Marcelo Tosatti , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v2 4/7] hw/hyperv/hyperv-proto: move SYNDBG definition from target/i386 Date: Fri, 7 Mar 2025 11:10:00 -0800 Message-Id: <20250307191003.248950-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307191003.248950-1-pierrick.bouvier@linaro.org> References: <20250307191003.248950-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x630.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 Reviewed-by: Richard Henderson --- 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 */