Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.0/patches/2219249/?format=api
{ "id": 2219249, "url": "http://patchwork.ozlabs.org/api/1.0/patches/2219249/?format=api", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.0/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260402170434.94783-4-philmd@linaro.org>", "date": "2026-04-02T17:04:28", "name": "[PATCH-for-11.1,v2,3/9] accel/kvm: Remove TARGET_KVM_HAVE_GUEST_DEBUG", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "2a0b9d2a0ebb963f11560439e7375f2803ffd192", "submitter": { "id": 85046, "url": "http://patchwork.ozlabs.org/api/1.0/people/85046/?format=api", "name": "Philippe Mathieu-Daudé", "email": "philmd@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260402170434.94783-4-philmd@linaro.org/mbox/", "series": [ { "id": 498514, "url": "http://patchwork.ozlabs.org/api/1.0/series/498514/?format=api", "date": "2026-04-02T17:04:26", "name": "target/arm: Compile accelerator-related objects as common code", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/498514/mbox/" } ], "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2219249/checks/", "tags": {}, "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=oe1WZe+5;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmpDn6wBmz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 04:07:05 +1100 (AEDT)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w8LTi-0000Mm-0z; Thu, 02 Apr 2026 13:05:10 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1w8LTd-0000IX-H9\n for qemu-devel@nongnu.org; Thu, 02 Apr 2026 13:05:06 -0400", "from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1w8LTa-0000iC-DL\n for qemu-devel@nongnu.org; Thu, 02 Apr 2026 13:05:05 -0400", "by mail-wm1-x32c.google.com with SMTP id\n 5b1f17b1804b1-4852b81c73aso10441755e9.3\n for <qemu-devel@nongnu.org>; Thu, 02 Apr 2026 10:05:00 -0700 (PDT)", "from localhost.localdomain (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488980e3b55sm562915e9.8.2026.04.02.10.04.57\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Thu, 02 Apr 2026 10:04:58 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775149500; x=1775754300; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=JrVl5JuVN8G6WWTaySq76RqbM4pMpv5bVR911pKLKsw=;\n b=oe1WZe+5gzqaMXADc8KtuoB23FMizdORp2CUUvDOwj42M/tzMQ/1AZTLH37GL+ML3R\n hGlQKiZraAWGU1dtW85kDnfOaqtSmKszKs8ZozJifqgvmjp3yhkN325FdnfrOc3LsoSb\n 34E9Eo+/yE8gclqHJj+CdNrV+EUVMsGjz244IJE9gq5cw76FRm7Myj3IC0C2CD6ZRdGC\n GguoPClxsqyxSsd3VZS1sEz36LBmZWlG0iiFmvsbslbmmW+CdeHu8VEw+yEt6J0MbQpt\n /Bd9F5jDoLMY/MP88VLSjT0CUGBoug6PUc8ntXPoD39GJSWbqszBgzNuafhVSFkS/uru\n JUqQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775149500; x=1775754300;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=JrVl5JuVN8G6WWTaySq76RqbM4pMpv5bVR911pKLKsw=;\n b=FNa7QpKmwQ2HLHhFS0RpcD84bFlvk4x1p06OQWAR4lATmaJDFk6bJpq8cgQBWDaIEe\n tuLj/b7cNSaBiQhWiHtCiyQZl/C2bDn4vp5mW8nIYZtjnL0NcmHbM6MWoNa5bbZEXyS3\n Mv4hXYlcSMNzxAQn2g5vtiCg6xLoyz1eEFcrsQOF8pdO0THlYxN7ccPlkRFWgeokxWiv\n aV/Ovmd23x3CV0CmPKq33h4jMNVb/6stnh0NIyYNFeQYGYWlLLc7kRC8yQyIAKttKJdu\n QM2IJJ7BNG2C3N/kYxnAPZOFt71ffISEIgFmPONdG7EZOwGllbFLxsfmC6+W7+OQDZua\n olzQ==", "X-Gm-Message-State": "AOJu0YxXTQovzucoryWVHsSiggFNWCZgZ7rF5UypGEiEUJ8tvro3tyLl\n EZlvJjJJkgDhFFRxXUXd1OFOHu36Mfm7Qkkilp2oJvg2g/ozbKAe6O2y3qWZd4ilEmHEhSJxPyT\n JcX7pHQ8=", "X-Gm-Gg": "ATEYQzwzT8p03W9NzFqL2t81q2NEkZ6wa0hpfAvSXkW9W86nRSrwBXBFeVA/A4YR+Gg\n 6Yt0oT2GvSK7n5lnDrlds5oirE9XLLvNJj1HBEZuiqh1TEfd4N4/uc7U8H5ZLH1WfFqc94YfJWE\n 2D08YwZTToZjMtQi1w3aBAoKeG/j0mtoE2PA650a2d5cR5Jum4C8x+eQhBHNUWr2MR/tbyFJ1i4\n qTMXaGam7qM7csURsnoqoGEapPOhMbk4jTly5XSORWHGiGoILa0oBZKzSIaL+IH2wtLrXtl+XPs\n DhrFoGIu16dnjybA6cNwn4COYRAYyw/y+T+3ha2MWPRIrXdBSkTopvbyNvzyGCqhQeZ1tBeL35O\n rd6c7X58x2ehcmt74xkHYOkL3iBXbNqTZVbYBxoKE8x4yxSx/ze1omglJ8Iy4KPMPePTq1quDQw\n bAsJKixx0EZq/u4Ve9UpJYNgtLBEd8ydSUwACC0cHrhDc0ra0ACGrQrYis+VgS/Ugk9awXqLP24\n sIH6hjRv7s=", "X-Received": "by 2002:a05:600c:19d0:b0:485:45fb:3472 with SMTP id\n 5b1f17b1804b1-48883562172mr131175635e9.7.1775149499446;\n Thu, 02 Apr 2026 10:04:59 -0700 (PDT)", "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "kvm@vger.kernel.org, qemu-arm@nongnu.org, Anton Johansson <anjo@rev.ng>,\n qemu-s390x@nongnu.org, Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n qemu-riscv@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,\n Paolo Bonzini <pbonzini@redhat.com>,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Alistair Francis <alistair.francis@wdc.com>, Zhao Liu <zhao1.liu@intel.com>,\n Song Gao <gaosong@loongson.cn>, Bibo Mao <maobibo@loongson.cn>,\n Jiaxun Yang <jiaxun.yang@flygoat.com>, Palmer Dabbelt <palmer@dabbelt.com>,\n Weiwei Li <liwei1518@gmail.com>,\n Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>,\n Liu Zhiwei <zhiwei_liu@linux.alibaba.com>,\n Chao Liu <chao.liu.zevorn@gmail.com>, Cornelia Huck <cohuck@redhat.com>,\n Eric Farman <farman@linux.ibm.com>, Matthew Rosato <mjrosato@linux.ibm.com>,\n Huacai Chen <chenhuacai@kernel.org>, Aurelien Jarno <aurelien@aurel32.net>,\n Aleksandar Rikalo <arikalo@gmail.com>", "Subject": "[PATCH-for-11.1 v2 3/9] accel/kvm: Remove TARGET_KVM_HAVE_GUEST_DEBUG", "Date": "Thu, 2 Apr 2026 19:04:28 +0200", "Message-ID": "<20260402170434.94783-4-philmd@linaro.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260402170434.94783-1-philmd@linaro.org>", "References": "<20260402170434.94783-1-philmd@linaro.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2a00:1450:4864:20::32c;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "All targets except MIPS have TARGET_KVM_HAVE_GUEST_DEBUG=y.\nDeclare the kvm_update_guest_debug() stub to MIPS and have\nTARGET_KVM_HAVE_GUEST_DEBUG be the default.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nReviewed-by: Alistair Francis <alistair.francis@wdc.com>\n---\n configs/targets/aarch64-softmmu.mak | 1 -\n configs/targets/i386-softmmu.mak | 1 -\n configs/targets/loongarch64-softmmu.mak | 1 -\n configs/targets/ppc-softmmu.mak | 1 -\n configs/targets/ppc64-softmmu.mak | 1 -\n configs/targets/riscv64-softmmu.mak | 1 -\n configs/targets/s390x-softmmu.mak | 1 -\n configs/targets/x86_64-softmmu.mak | 1 -\n include/system/kvm.h | 7 -------\n include/system/kvm_int.h | 2 --\n accel/kvm/kvm-accel-ops.c | 4 ----\n accel/kvm/kvm-all.c | 13 ++-----------\n target/mips/kvm.c | 5 +++++\n 13 files changed, 7 insertions(+), 32 deletions(-)", "diff": "diff --git a/configs/targets/aarch64-softmmu.mak b/configs/targets/aarch64-softmmu.mak\nindex d34aead41c4..6f60ca6505c 100644\n--- a/configs/targets/aarch64-softmmu.mak\n+++ b/configs/targets/aarch64-softmmu.mak\n@@ -1,6 +1,5 @@\n TARGET_ARCH=aarch64\n TARGET_BASE_ARCH=arm\n-TARGET_KVM_HAVE_GUEST_DEBUG=y\n TARGET_XML_FILES= aarch64-core.xml aarch64-fpu.xml arm-core.xml arm-vfp.xml arm-vfp3.xml arm-vfp-sysregs.xml arm-neon.xml arm-m-profile.xml arm-m-profile-mve.xml aarch64-pauth.xml aarch64-sme2.xml\n # needed by boot.c\n TARGET_NEED_FDT=y\ndiff --git a/configs/targets/i386-softmmu.mak b/configs/targets/i386-softmmu.mak\nindex 38a8f85201f..2eef68dc55e 100644\n--- a/configs/targets/i386-softmmu.mak\n+++ b/configs/targets/i386-softmmu.mak\n@@ -1,5 +1,4 @@\n TARGET_ARCH=i386\n-TARGET_KVM_HAVE_GUEST_DEBUG=y\n TARGET_KVM_HAVE_RESET_PARKED_VCPU=y\n TARGET_XML_FILES= i386-32bit.xml\n TARGET_LONG_BITS=32\ndiff --git a/configs/targets/loongarch64-softmmu.mak b/configs/targets/loongarch64-softmmu.mak\nindex 476407f9413..7e0b1ab5d05 100644\n--- a/configs/targets/loongarch64-softmmu.mak\n+++ b/configs/targets/loongarch64-softmmu.mak\n@@ -1,6 +1,5 @@\n TARGET_ARCH=loongarch64\n TARGET_BASE_ARCH=loongarch\n-TARGET_KVM_HAVE_GUEST_DEBUG=y\n TARGET_XML_FILES= loongarch-base32.xml loongarch-base64.xml loongarch-fpu.xml loongarch-lsx.xml loongarch-lasx.xml\n # all boards require libfdt\n TARGET_NEED_FDT=y\ndiff --git a/configs/targets/ppc-softmmu.mak b/configs/targets/ppc-softmmu.mak\nindex 867898bd47c..c47887f8992 100644\n--- a/configs/targets/ppc-softmmu.mak\n+++ b/configs/targets/ppc-softmmu.mak\n@@ -1,5 +1,4 @@\n TARGET_ARCH=ppc\n TARGET_BIG_ENDIAN=y\n-TARGET_KVM_HAVE_GUEST_DEBUG=y\n TARGET_XML_FILES= power-core.xml power-fpu.xml power-altivec.xml power-spe.xml\n TARGET_LONG_BITS=32\ndiff --git a/configs/targets/ppc64-softmmu.mak b/configs/targets/ppc64-softmmu.mak\nindex 10d7a2681e7..8c6dc84b821 100644\n--- a/configs/targets/ppc64-softmmu.mak\n+++ b/configs/targets/ppc64-softmmu.mak\n@@ -1,7 +1,6 @@\n TARGET_ARCH=ppc64\n TARGET_BASE_ARCH=ppc\n TARGET_BIG_ENDIAN=y\n-TARGET_KVM_HAVE_GUEST_DEBUG=y\n TARGET_XML_FILES= power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml\n # all boards require libfdt\n TARGET_NEED_FDT=y\ndiff --git a/configs/targets/riscv64-softmmu.mak b/configs/targets/riscv64-softmmu.mak\nindex 5059c550480..e0d2c7032d6 100644\n--- a/configs/targets/riscv64-softmmu.mak\n+++ b/configs/targets/riscv64-softmmu.mak\n@@ -1,6 +1,5 @@\n TARGET_ARCH=riscv64\n TARGET_BASE_ARCH=riscv\n-TARGET_KVM_HAVE_GUEST_DEBUG=y\n TARGET_XML_FILES= riscv-64bit-cpu.xml riscv-32bit-fpu.xml riscv-64bit-fpu.xml riscv-64bit-virtual.xml riscv-32bit-cpu.xml riscv-32bit-virtual.xml\n # needed by boot.c\n TARGET_NEED_FDT=y\ndiff --git a/configs/targets/s390x-softmmu.mak b/configs/targets/s390x-softmmu.mak\nindex e273075f1a9..699e5ced96f 100644\n--- a/configs/targets/s390x-softmmu.mak\n+++ b/configs/targets/s390x-softmmu.mak\n@@ -1,6 +1,5 @@\n TARGET_ARCH=s390x\n TARGET_BIG_ENDIAN=y\n-TARGET_KVM_HAVE_GUEST_DEBUG=y\n TARGET_XML_FILES= s390x-core64.xml s390-acr.xml s390-fpr.xml s390-vx.xml s390-cr.xml s390-virt.xml s390-virt-kvm.xml s390-gs.xml\n TARGET_LONG_BITS=64\n TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y\ndiff --git a/configs/targets/x86_64-softmmu.mak b/configs/targets/x86_64-softmmu.mak\nindex c7f8746b4f5..491173df466 100644\n--- a/configs/targets/x86_64-softmmu.mak\n+++ b/configs/targets/x86_64-softmmu.mak\n@@ -1,6 +1,5 @@\n TARGET_ARCH=x86_64\n TARGET_BASE_ARCH=i386\n-TARGET_KVM_HAVE_GUEST_DEBUG=y\n TARGET_KVM_HAVE_RESET_PARKED_VCPU=y\n TARGET_XML_FILES= i386-64bit.xml i386-64bit-apx.xml\n TARGET_LONG_BITS=64\ndiff --git a/include/system/kvm.h b/include/system/kvm.h\nindex b5763a562d7..9b722ad931a 100644\n--- a/include/system/kvm.h\n+++ b/include/system/kvm.h\n@@ -237,14 +237,7 @@ void kvm_irqchip_change_notify(void);\n * calling down to kvm_arch_update_guest_debug after the generic\n * fields have been set.\n */\n-#ifdef TARGET_KVM_HAVE_GUEST_DEBUG\n int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap);\n-#else\n-static inline int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap)\n-{\n- return -EINVAL;\n-}\n-#endif\n \n /* internal API */\n \ndiff --git a/include/system/kvm_int.h b/include/system/kvm_int.h\nindex 0876aac938d..9d1d3fd3deb 100644\n--- a/include/system/kvm_int.h\n+++ b/include/system/kvm_int.h\n@@ -113,9 +113,7 @@ struct KVMState\n struct kvm_coalesced_mmio_ring *coalesced_mmio_ring;\n bool coalesced_flush_in_progress;\n int vcpu_events;\n-#ifdef TARGET_KVM_HAVE_GUEST_DEBUG\n QTAILQ_HEAD(, kvm_sw_breakpoint) kvm_sw_breakpoints;\n-#endif\n int max_nested_state_len;\n int kvm_shadow_mem;\n bool kernel_irqchip_allowed;\ndiff --git a/accel/kvm/kvm-accel-ops.c b/accel/kvm/kvm-accel-ops.c\nindex 6d9140e549f..d4af6b416c3 100644\n--- a/accel/kvm/kvm-accel-ops.c\n+++ b/accel/kvm/kvm-accel-ops.c\n@@ -85,12 +85,10 @@ static bool kvm_cpus_are_resettable(void)\n return !kvm_enabled() || !kvm_state->guest_state_protected;\n }\n \n-#ifdef TARGET_KVM_HAVE_GUEST_DEBUG\n static int kvm_update_guest_debug_ops(CPUState *cpu)\n {\n return kvm_update_guest_debug(cpu, 0);\n }\n-#endif\n \n static void kvm_accel_ops_class_init(ObjectClass *oc, const void *data)\n {\n@@ -105,13 +103,11 @@ static void kvm_accel_ops_class_init(ObjectClass *oc, const void *data)\n ops->synchronize_pre_loadvm = kvm_cpu_synchronize_pre_loadvm;\n ops->handle_interrupt = generic_handle_interrupt;\n \n-#ifdef TARGET_KVM_HAVE_GUEST_DEBUG\n ops->update_guest_debug = kvm_update_guest_debug_ops;\n ops->supports_guest_debug = kvm_supports_guest_debug;\n ops->insert_breakpoint = kvm_insert_breakpoint;\n ops->remove_breakpoint = kvm_remove_breakpoint;\n ops->remove_all_breakpoints = kvm_remove_all_breakpoints;\n-#endif\n }\n \n static const TypeInfo kvm_accel_ops_type = {\ndiff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c\nindex 5df3fb90d88..91724b54cdf 100644\n--- a/accel/kvm/kvm-all.c\n+++ b/accel/kvm/kvm-all.c\n@@ -2920,9 +2920,7 @@ static int kvm_init(AccelState *as, MachineState *ms)\n s->sigmask_len = 8;\n accel_blocker_init();\n \n-#ifdef TARGET_KVM_HAVE_GUEST_DEBUG\n QTAILQ_INIT(&s->kvm_sw_breakpoints);\n-#endif\n QLIST_INIT(&s->kvm_parked_vcpus);\n s->fd = qemu_open_old(s->device ?: \"/dev/kvm\", O_RDWR);\n if (s->fd == -1) {\n@@ -3033,23 +3031,19 @@ static int kvm_init(AccelState *as, MachineState *ms)\n kvm_vm_attributes_allowed =\n (kvm_check_extension(s, KVM_CAP_VM_ATTRIBUTES) > 0);\n \n-#ifdef TARGET_KVM_HAVE_GUEST_DEBUG\n kvm_has_guest_debug =\n (kvm_check_extension(s, KVM_CAP_SET_GUEST_DEBUG) > 0);\n-#endif\n \n kvm_sstep_flags = 0;\n if (kvm_has_guest_debug) {\n- kvm_sstep_flags = SSTEP_ENABLE;\n-\n-#if defined TARGET_KVM_HAVE_GUEST_DEBUG\n int guest_debug_flags =\n kvm_check_extension(s, KVM_CAP_SET_GUEST_DEBUG2);\n \n+ kvm_sstep_flags = SSTEP_ENABLE;\n+\n if (guest_debug_flags & KVM_GUESTDBG_BLOCKIRQ) {\n kvm_sstep_flags |= SSTEP_NOIRQ;\n }\n-#endif\n }\n \n kvm_state = s;\n@@ -3782,7 +3776,6 @@ bool kvm_arm_supports_user_irq(void)\n return kvm_check_extension(kvm_state, KVM_CAP_ARM_USER_IRQ);\n }\n \n-#ifdef TARGET_KVM_HAVE_GUEST_DEBUG\n struct kvm_sw_breakpoint *kvm_find_sw_breakpoint(CPUState *cpu, vaddr pc)\n {\n struct kvm_sw_breakpoint *bp;\n@@ -3942,8 +3935,6 @@ void kvm_remove_all_breakpoints(CPUState *cpu)\n }\n }\n \n-#endif /* !TARGET_KVM_HAVE_GUEST_DEBUG */\n-\n static int kvm_set_signal_mask(CPUState *cpu, const sigset_t *sigset)\n {\n KVMState *s = kvm_state;\ndiff --git a/target/mips/kvm.c b/target/mips/kvm.c\nindex a85e162409c..49bff68b137 100644\n--- a/target/mips/kvm.c\n+++ b/target/mips/kvm.c\n@@ -1262,6 +1262,11 @@ int kvm_arch_msi_data_to_gsi(uint32_t data)\n abort();\n }\n \n+int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap)\n+{\n+ return -EINVAL;\n+}\n+\n int kvm_arch_get_default_type(MachineState *machine)\n {\n #if defined(KVM_CAP_MIPS_VZ)\n", "prefixes": [ "PATCH-for-11.1", "v2", "3/9" ] }