From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drllU-0006Cx-4H for qemu-devel@nongnu.org; Tue, 12 Sep 2017 10:02:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drllP-0002fX-AC for qemu-devel@nongnu.org; Tue, 12 Sep 2017 10:02:12 -0400 From: Laurent Vivier Date: Tue, 12 Sep 2017 16:01:46 +0200 Message-Id: <20170912140149.7692-1-lvivier@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/3] hmp: fix "dump-quest-memory" segfault List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Daniel P . Berrange" , Cornelia Huck , David Gibson , Thomas Huth , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, Peter Maydell , "Dr . David Alan Gilbert" , Greg Kurz , Laurent Vivier Fix aarch64 and ppc when dump-guest-memory is used with none machine type and no CPU. The other machine types don't have the problem. Update test-hmp, to test none machine type with (2 MB) and without memory, and add a test to test dump-quest-memory without filter parameters (it needs the fix from Cornelia Huck to work) v3: - remove blank line after a comment - forbid memory dump when there is no CPU v2: - add arm fix - update test-hmp Laurent Vivier (3): hmp: fix "dump-quest-memory" segfault (ppc) hmp: fix "dump-quest-memory" segfault (arm) tests/hmp: test "none" machine with memory target/arm/arch_dump.c | 11 +++++++++-- target/ppc/arch_dump.c | 11 +++++++++-- tests/test-hmp.c | 4 ++++ 3 files changed, 22 insertions(+), 4 deletions(-) -- 2.13.5