From patchwork Fri Apr 27 09:11:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tina Zhang X-Patchwork-Id: 905541 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=intel.com Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40XSxc6XhMz9s1j for ; Fri, 27 Apr 2018 19:17:08 +1000 (AEST) Received: from localhost ([::1]:46632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBzV4-0005rp-N7 for incoming@patchwork.ozlabs.org; Fri, 27 Apr 2018 05:17:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBzUL-0005pc-5y for qemu-devel@nongnu.org; Fri, 27 Apr 2018 05:16:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBzUI-0006r9-Cz for qemu-devel@nongnu.org; Fri, 27 Apr 2018 05:16:21 -0400 Received: from mga05.intel.com ([192.55.52.43]:31924) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fBzUI-0006my-4h for qemu-devel@nongnu.org; Fri, 27 Apr 2018 05:16:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2018 02:16:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,334,1520924400"; d="scan'208";a="36870397" Received: from tinazhang-linux-1.bj.intel.com ([10.238.158.97]) by orsmga008.jf.intel.com with ESMTP; 27 Apr 2018 02:16:10 -0700 From: Tina Zhang To: alex.williamson@redhat.com, kraxel@redhat.com, zhenyuw@linux.intel.com, hang.yuan@intel.com Date: Fri, 27 Apr 2018 17:11:04 +0800 Message-Id: <1524820266-27079-1-git-send-email-tina.zhang@intel.com> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.43 Subject: [Qemu-devel] [PATCH v4 0/2] Add vfio dma-buf based display reset handling X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gvt-dev@lists.freedesktop.org, qemu-devel@nongnu.org, Tina Zhang Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" vfio display needs to release the invalid display resource and disable the scanout mode during guest OS reboot, otherwise bugs come out. Thanks hang.yuan@intel.com for helping root cause the issue. v3->v4: - Move dma-buf based display check into the vfio_display_reset(). (Gerd) v2->v3: - Limit vfio_display_reset to dma-buf based vfio display. (Gerd) v1->v2: - remove dpy_gfx_switch_surface. (Gerd) - add dpy_gfx_update_full. (Gerd) Tina Zhang (2): console: introduce dpy_gfx_update_full ui: introduce vfio_display_reset hw/vfio/display.c | 11 +++++++++++ hw/vfio/pci.c | 4 ++++ hw/vfio/pci.h | 1 + include/ui/console.h | 1 + ui/console.c | 10 ++++++++++ 5 files changed, 27 insertions(+)