All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mihail Abakumov <mikhail.abakumov@ispras.ru>
To: qemu-devel@nongnu.org
Cc: sw@weilnetz.de, lprosek@redhat.com, dovgaluk@ispras.ru,
	rkagan@virtuozzo.com, pbonzini@redhat.com, den@openvz.org
Subject: [Qemu-devel] [PATCH v3 01/45] windbg: added empty windbgstub files
Date: Tue, 21 Nov 2017 17:07:21 +0300	[thread overview]
Message-ID: <151127324158.6888.17818677336117525693.stgit@Misha-PC.lan02.inno> (raw)
In-Reply-To: <151127322955.6888.16198535123422076171.stgit@Misha-PC.lan02.inno>

Signed-off-by: Mihail Abakumov <mikhail.abakumov@ispras.ru>
Signed-off-by: Pavel Dovgalyuk <dovgaluk@ispras.ru>
Signed-off-by: Dmitriy Koltunov <koltunov@ispras.ru>
---
 Makefile.target                 |    7 +++++++
 include/exec/windbgstub-utils.h |   18 ++++++++++++++++++
 include/exec/windbgstub.h       |   17 +++++++++++++++++
 stubs/Makefile.objs             |    1 +
 stubs/windbgstub.c              |   18 ++++++++++++++++++
 target/i386/Makefile.objs       |    2 +-
 target/i386/windbgstub.c        |   12 ++++++++++++
 windbgstub-utils.c              |   12 ++++++++++++
 windbgstub.c                    |   19 +++++++++++++++++++
 9 files changed, 105 insertions(+), 1 deletion(-)
 create mode 100755 include/exec/windbgstub-utils.h
 create mode 100755 include/exec/windbgstub.h
 create mode 100755 stubs/windbgstub.c
 create mode 100755 target/i386/windbgstub.c
 create mode 100755 windbgstub-utils.c
 create mode 100755 windbgstub.c

diff --git a/Makefile.target b/Makefile.target
index 7f42c45db8..6df0836509 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -148,6 +148,13 @@ obj-y += dump.o
 obj-y += migration/ram.o
 LIBS := $(libs_softmmu) $(LIBS)
 
+# WinDbg support
+ifeq ($(TARGET_NAME), i386)
+ifneq ($(TARGET_NAME), x86_64)
+obj-y += windbgstub.o windbgstub-utils.o
+endif
+endif
+
 # Hardware support
 ifeq ($(TARGET_NAME), sparc64)
 obj-y += hw/sparc64/
diff --git a/include/exec/windbgstub-utils.h b/include/exec/windbgstub-utils.h
new file mode 100755
index 0000000000..67d190bf6c
--- /dev/null
+++ b/include/exec/windbgstub-utils.h
@@ -0,0 +1,18 @@
+/*
+ * windbgstub-utils.h
+ *
+ * Copyright (c) 2010-2017 Institute for System Programming
+ *                         of the Russian Academy of Sciences.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#ifndef WINDBGSTUB_UTILS_H
+#define WINDBGSTUB_UTILS_H
+
+#include "qemu/osdep.h"
+#include "exec/windbgstub.h"
+
+#endif
diff --git a/include/exec/windbgstub.h b/include/exec/windbgstub.h
new file mode 100755
index 0000000000..1a6e1cc6e5
--- /dev/null
+++ b/include/exec/windbgstub.h
@@ -0,0 +1,17 @@
+/*
+ * windbgstub.h
+ *
+ * Copyright (c) 2010-2017 Institute for System Programming
+ *                         of the Russian Academy of Sciences.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#ifndef WINDBGSTUB_H
+#define WINDBGSTUB_H
+
+int windbg_server_start(const char *device);
+
+#endif
diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs
index e69c217aff..5c25a53c15 100644
--- a/stubs/Makefile.objs
+++ b/stubs/Makefile.objs
@@ -12,6 +12,7 @@ stub-obj-y += dump.o
 stub-obj-y += error-printf.o
 stub-obj-y += fdset.o
 stub-obj-y += gdbstub.o
+stub-obj-y += windbgstub.o
 stub-obj-y += get-vm-name.o
 stub-obj-y += iothread.o
 stub-obj-y += iothread-lock.o
diff --git a/stubs/windbgstub.c b/stubs/windbgstub.c
new file mode 100755
index 0000000000..4951f59203
--- /dev/null
+++ b/stubs/windbgstub.c
@@ -0,0 +1,18 @@
+/*
+ * windbgstub.c
+ *
+ * Copyright (c) 2010-2017 Institute for System Programming
+ *                         of the Russian Academy of Sciences.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#include "qemu/osdep.h"
+#include "exec/windbgstub.h"
+
+int windbg_server_start(const char *device)
+{
+    return 0;
+}
diff --git a/target/i386/Makefile.objs b/target/i386/Makefile.objs
index 6a26e9d9f0..730ee04e27 100644
--- a/target/i386/Makefile.objs
+++ b/target/i386/Makefile.objs
@@ -1,4 +1,4 @@
-obj-y += helper.o cpu.o gdbstub.o xsave_helper.o
+obj-y += helper.o cpu.o gdbstub.o windbgstub.o xsave_helper.o
 obj-$(CONFIG_TCG) += translate.o
 obj-$(CONFIG_TCG) += bpt_helper.o cc_helper.o excp_helper.o fpu_helper.o
 obj-$(CONFIG_TCG) += int_helper.o mem_helper.o misc_helper.o mpx_helper.o
diff --git a/target/i386/windbgstub.c b/target/i386/windbgstub.c
new file mode 100755
index 0000000000..df89e1edd8
--- /dev/null
+++ b/target/i386/windbgstub.c
@@ -0,0 +1,12 @@
+/*
+ * windbgstub.c
+ *
+ * Copyright (c) 2010-2017 Institute for System Programming
+ *                         of the Russian Academy of Sciences.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#include "qemu/osdep.h"
diff --git a/windbgstub-utils.c b/windbgstub-utils.c
new file mode 100755
index 0000000000..dc5e505c63
--- /dev/null
+++ b/windbgstub-utils.c
@@ -0,0 +1,12 @@
+/*
+ * windbgstub-utils.c
+ *
+ * Copyright (c) 2010-2017 Institute for System Programming
+ *                         of the Russian Academy of Sciences.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#include "exec/windbgstub-utils.h"
diff --git a/windbgstub.c b/windbgstub.c
new file mode 100755
index 0000000000..3830446988
--- /dev/null
+++ b/windbgstub.c
@@ -0,0 +1,19 @@
+/*
+ * windbgstub.c
+ *
+ * Copyright (c) 2010-2017 Institute for System Programming
+ *                         of the Russian Academy of Sciences.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#include "qemu/osdep.h"
+#include "exec/windbgstub.h"
+#include "exec/windbgstub-utils.h"
+
+int windbg_server_start(const char *device)
+{
+    return 0;
+}

  reply	other threads:[~2017-11-21 14:07 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-21 14:07 [Qemu-devel] [PATCH v3 00/45] Windbg supporting Mihail Abakumov
2017-11-21 14:07 ` Mihail Abakumov [this message]
2017-11-28 12:10   ` [Qemu-devel] [PATCH v3 01/45] windbg: added empty windbgstub files Ladi Prosek
2017-11-21 14:07 ` [Qemu-devel] [PATCH v3 02/45] windbg: added windbg's KD header file Mihail Abakumov
2017-11-21 14:07 ` [Qemu-devel] [PATCH v3 03/45] windbg: modified windbgkd.h Mihail Abakumov
2017-11-28 12:54   ` Ladi Prosek
2017-11-21 14:07 ` [Qemu-devel] [PATCH v3 04/45] windbg: added '-windbg' option Mihail Abakumov
2017-11-21 14:07 ` [Qemu-devel] [PATCH v3 05/45] windbg: added helper features Mihail Abakumov
2017-11-28  8:18   ` Ladi Prosek
2017-11-28  8:34     ` Peter Maydell
2017-11-28  9:01       ` Paolo Bonzini
2017-11-21 14:07 ` [Qemu-devel] [PATCH v3 06/45] windbg: added WindbgState Mihail Abakumov
2017-11-21 14:07 ` [Qemu-devel] [PATCH v3 07/45] windbg: added chardev Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 08/45] windbg: hook to wrmsr operation Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 09/45] windbg: handler of fs/gs register Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 10/45] windbg: structures for parsing data stream Mihail Abakumov
2017-11-28 13:45   ` Ladi Prosek
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 11/45] windbg: " Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 12/45] windbg: send data and control packets Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 13/45] windbg: handler of parsing context Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 14/45] windbg: init DBGKD_ANY_WAIT_STATE_CHANGE Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 15/45] windbg: sized data buffer Mihail Abakumov
2017-11-28 14:07   ` Ladi Prosek
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 16/45] windbg: generate ExceptionStateChange Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 17/45] windbg: generate LoadSymbolsStateChange Mihail Abakumov
2017-11-21 14:08 ` [Qemu-devel] [PATCH v3 18/45] windbg: windbg_vm_stop Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 19/45] windbg: implemented windbg_process_control_packet Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 20/45] windbg: implemented windbg_process_data_packet Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 21/45] windbg: implemented windbg_process_manipulate_packet Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 22/45] windbg: implemented kd_api_read_virtual_memory and kd_api_write_virtual_memory Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 23/45] windbg: kernel's structures Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 24/45] windbg: implemented kd_api_get_context and kd_api_set_context Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 25/45] windbg: implemented kd_api_read_control_space and kd_api_write_control_space Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 26/45] windbg: implemented windbg_read_context Mihail Abakumov
2017-11-28 14:57   ` Ladi Prosek
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 27/45] windbg: implemented windbg_write_context Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 28/45] windbg: implemented windbg_read_ks_regs Mihail Abakumov
2017-11-21 14:09 ` [Qemu-devel] [PATCH v3 29/45] windbg: implemented windbg_write_ks_regs Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 30/45] windbg: implemented windbg_set_sr Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 31/45] windbg: implemented windbg_set_dr Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 32/45] windbg: implemented windbg_set_dr7 Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 33/45] windbg: implemented windbg_hw_breakpoint_insert and windbg_hw_breakpoint_remove Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 34/45] windbg: implemented kd_api_write_breakpoint and kd_api_restore_breakpoint Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 35/45] windbg: debug exception subscribing Mihail Abakumov
2017-11-29  7:13   ` Ladi Prosek
2017-12-06  7:29     ` Mihail Abakumov
2017-12-06  9:23       ` Ladi Prosek
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 36/45] windbg: implemented kd_api_continue Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 37/45] windbg: implemented kd_api_read_io_space and kd_api_write_io_space Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 38/45] windbg: implemented kd_api_read_physical_memory and kd_api_write_physical_memory Mihail Abakumov
2017-11-21 14:10 ` [Qemu-devel] [PATCH v3 39/45] windbg: implemented kd_api_get_version Mihail Abakumov
2017-11-29  8:14   ` Ladi Prosek
2017-12-06  9:00     ` Mihail Abakumov
2017-12-06  9:37       ` Ladi Prosek
2017-11-21 14:11 ` [Qemu-devel] [PATCH v3 40/45] windbg: implemented kd_api_read_msr and kd_api_write_msr Mihail Abakumov
2017-11-29  7:25   ` Ladi Prosek
2017-11-21 14:11 ` [Qemu-devel] [PATCH v3 41/45] windbg: implemented kd_api_search_memory Mihail Abakumov
2017-11-29  7:55   ` Ladi Prosek
2017-11-21 14:11 ` [Qemu-devel] [PATCH v3 42/45] windbg: implemented kd_api_fill_memory Mihail Abakumov
2017-11-21 14:11 ` [Qemu-devel] [PATCH v3 43/45] windbg: implemented kd_api_query_memory Mihail Abakumov
2017-11-29  8:03   ` Ladi Prosek
2017-11-21 14:11 ` [Qemu-devel] [PATCH v3 44/45] windbg: added new api functions Mihail Abakumov
2017-11-21 14:11 ` [Qemu-devel] [PATCH v3 45/45] windbg: implemented kd_api_get_context_ex and kd_api_set_context_ex Mihail Abakumov
2017-11-28 12:44   ` Ladi Prosek
2017-12-05 11:28     ` Mihail Abakumov
2017-11-21 15:00 ` [Qemu-devel] [PATCH v3 00/45] Windbg supporting no-reply
2017-11-21 15:05 ` no-reply
2017-11-21 16:23 ` no-reply
2017-11-29  8:23   ` Ladi Prosek
2017-12-06  9:14     ` Mihail Abakumov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=151127324158.6888.17818677336117525693.stgit@Misha-PC.lan02.inno \
    --to=mikhail.abakumov@ispras.ru \
    --cc=den@openvz.org \
    --cc=dovgaluk@ispras.ru \
    --cc=lprosek@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rkagan@virtuozzo.com \
    --cc=sw@weilnetz.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.