From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: pci-assign terminates the guest upon pread() / pwrite() error? Date: Thu, 20 Sep 2012 19:36:09 +0200 Message-ID: <505B5409.1070804@siemens.com> References: <505B5218.10009@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm To: Etienne Martineau Return-path: Received: from goliath.siemens.de ([192.35.17.28]:25388 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751767Ab2ITRgP (ORCPT ); Thu, 20 Sep 2012 13:36:15 -0400 In-Reply-To: <505B5218.10009@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 2012-09-20 19:27, Etienne Martineau wrote: > In hw/kvm/pci-assign.c a pread() error part of assigned_dev_pci_read() > result in a hw_error(). Similarly a pwrite() error part of > assigned_dev_pci_write() also result in a hw_error(). > > Would there be a way to avoid terminating the guest for those cases? How > about we deassign the device upon error? First of all, is this a regression of latest QEMU / qemu-kvm? Or was it always like this for you? Then, can you provide more information about the device (lscpi -vv) and what accesses go wrong (printf, complete console output)? Jan -- Siemens AG, Corporate Technology, CT RTC ITP SDP-DE Corporate Competence Center Embedded Linux