From: Fabio Fantoni Subject: Re: [PATCH v5 00/16] x86/hvm: I/O emulation cleanup and fix Date: Tue, 30 Jun 2015 16:48:44 +0200 Message-ID: <5592AC4C.3080006@m2r.biz> References: <1435669558-5421-1-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z9wq8-0006d9-5n for xen-devel@lists.xenproject.org; Tue, 30 Jun 2015 14:48:48 +0000 Received: by widjy10 with SMTP id jy10so32641387wid.1 for ; Tue, 30 Jun 2015 07:48:46 -0700 (PDT) In-Reply-To: <1435669558-5421-1-git-send-email-paul.durrant@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant , xen-devel@lists.xenproject.org Cc: Jim Fehlig , Jan Beulich List-Id: xen-devel@lists.xenproject.org Il 30/06/2015 15:05, Paul Durrant ha scritto: > This patch series re-works much of the code involved in emulation of port > and memory mapped I/O for HVM guests. > > The code has become very convoluted and, at least by inspection, certain > emulations will apparently malfunction. > > The series is broken down into 16 patches (which are also available in > my xenbits repo: http://xenbits.xen.org/gitweb/?p=people/pauldu/xen.git > on the emulation32 branch). > > Previous changelog > ------------------ > > v2: > - Removed bogus assertion from patch #15 > - Re-worked patch #17 after basic testing of back-port onto XenServer > > v3: > - Addressed comments from Jan > - Re-ordered series to bring a couple of more trivial patches to the > front > - Backport to XenServer (4.5) now passing automated tests > - Tested on unstable with QEMU upstream and trad, with and without > HAP (to force shadow emulation) > > v4: > - Removed previous patch (make sure translated MMIO reads or > writes fall within a page) and rebased rest of series. > - Address Jan's comments on patch #1 > > Changelog (now per-patch) > ------------------------- > > 0001-x86-hvm-make-sure-emulation-is-retried-if-domain-is-.patch > > This is a fix for an issue on staging reported by Don Slutz > > 0002-x86-hvm-remove-multiple-open-coded-chunking-loops.patch > > v5: Addressed further comments from Jan > > 0003-x86-hvm-change-hvm_mmio_read_t-and-hvm_mmio_write_t-.patch > > v5: New patch to tidy up types > > 0004-x86-hvm-restrict-port-numbers-to-uint16_t-and-sizes-.patch > > v5: New patch to tidy up more types > > 0005-x86-hvm-unify-internal-portio-and-mmio-intercepts.patch > > v5: Addressed further comments from Jan and simplified implementation > by passing ioreq_t to accept() function > > 0006-x86-hvm-add-length-to-mmio-check-op.patch > > v5: Simplified by leaving mmio_check() implementation alone and > calling to check last byte if first-byte check passes > > 0007-x86-hvm-unify-dpci-portio-intercept-with-standard-po.patch > > v5: Addressed further comments from Jan > > 0008-x86-hvm-unify-stdvga-mmio-intercept-with-standard-mm.patch > > v5: Fixed semantic problems pointed out by Jan > > 0009-x86-hvm-limit-reps-to-avoid-the-need-to-handle-retry.patch > > v5: Addressed further comments from Jan > > 0010-x86-hvm-only-call-hvm_io_assist-from-hvm_wait_for_io.patch > > v5: Added Jan's acked-by > > 0011-x86-hvm-split-I-O-completion-handling-from-state-mod.patch > > v5: Confirmed call to msix_write_completion() is in the correct place. > > 0012-x86-hvm-remove-HVMIO_dispatched-I-O-state.patch > > v5: Added some extra comments to the commit > > 0013-x86-hvm-remove-hvm_io_state-enumeration.patch > > v5: Added Jan's acked-by > > 0014-x86-hvm-use-ioreq_t-to-track-in-flight-state.patch > > v5: Added missing hunk with call to handle_pio() > > 0015-x86-hvm-always-re-emulate-I-O-from-a-buffer.patch > > v5: Added Jan's acked-by > > 0016-x86-hvm-track-large-memory-mapped-accesses-by-buffer.patch > > v5: Fixed to cache up three distict I/O emulations per instruction > > Testing > ------- > > The series was been back-ported to staging-4.5 and then dropped onto the > XenServer (Dundee) patch queue. All automated branch-safety tests pass. > > The series as-is has been manually tested with a Windows 7 (32-bit) VM > using upstream QEMU. > > Thanks for your work. I did some very fast tests, no regression found, on my linux domUs qxl is still not working and I'm unable to debug it. @Jim Fehlig: can you try if qxl is still working at least on suse dom0/domU after this serie please? Can someone tell me how to debug the qxl problem now that qemu don't crash anymore but remain at 100% cpu without nothing about in dom0 logs (if exists) please? Thanks for any reply and sorry for my bad english.