From mboxrd@z Thu Jan 1 00:00:00 1970 From: Etienne Martineau Subject: pci-assign terminates the guest upon pread() / pwrite() error? Date: Thu, 20 Sep 2012 13:27:52 -0400 Message-ID: <505B5218.10009@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm To: Jan Kiszka , Marcelo Tosatti Return-path: Received: from mail-vb0-f46.google.com ([209.85.212.46]:59310 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751484Ab2ITR1z (ORCPT ); Thu, 20 Sep 2012 13:27:55 -0400 Received: by vbbff1 with SMTP id ff1so2859101vbb.19 for ; Thu, 20 Sep 2012 10:27:55 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: 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? thanks, Etienne