Received: from eggs.gnu.org ([2001:4830:134:3::10]:52615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgecB-00051i-O9 for qemu-devel@nongnu.org; Mon, 28 Sep 2015 16:01:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgecB-00010W-19 for qemu-devel@nongnu.org; Mon, 28 Sep 2015 16:01:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgecA-00010S-Oo for qemu-devel@nongnu.org; Mon, 28 Sep 2015 16:01:34 -0400 From: Eduardo Habkost Date: Mon, 28 Sep 2015 17:01:22 -0300 Message-Id: <1443470484-5389-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] xen: Fix crash of "-machine xenfv, accel=kvm" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, Stefano Stabellini This series fixes the following crash: $ ./x86_64-softmmu/qemu-system-x86_64 -machine xenfv,accel=kvm Segmentation fault (core dumped) The crash happens because xen-platform calls xc_hvm_set_mem_type() with a NULL xen_xc on reset, at platform_fixed_ioport_writeb(). Crash is replaced by the following error message: $ ./x86_64-softmmu/qemu-system-x86_64 -machine xenfv,accel=kvm qemu-system-x86_64: xenfv machine requires the xen accelerator Eduardo Habkost (2): pc: Require xen when initializing xenfv machine xen-platform: Ensure xen is enabled when initializing hw/i386/pc_piix.c | 5 +++++ hw/i386/xen/xen_platform.c | 3 +++ 2 files changed, 8 insertions(+) -- 2.1.0