From: Fabio Fantoni Subject: Re: [PATCH 00/17] x86/hvm: I/O emulation cleanup and fix Date: Wed, 10 Jun 2015 11:13:39 +0200 Message-ID: <5577FFC3.9090903@m2r.biz> References: <1433774025-6705-1-git-send-email-paul.durrant@citrix.com> <5576FBAC.2030607@m2r.biz> <9AAE0902D5BC7E449B7C8E4E778ABCD0259422B0@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z2c4p-0004fz-Pi for xen-devel@lists.xenproject.org; Wed, 10 Jun 2015 09:13:40 +0000 Received: by wibdq8 with SMTP id dq8so40481786wib.1 for ; Wed, 10 Jun 2015 02:13:37 -0700 (PDT) In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0259422B0@AMSPEX01CL01.citrite.net> 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" List-Id: xen-devel@lists.xenproject.org Il 09/06/2015 17:21, Paul Durrant ha scritto: >> -----Original Message----- >> From: Fabio Fantoni [mailto:fabio.fantoni@m2r.biz] >> Sent: 09 June 2015 15:44 >> To: Paul Durrant; xen-devel@lists.xenproject.org >> Subject: Re: [Xen-devel] [PATCH 00/17] x86/hvm: I/O emulation cleanup and >> fix >> >> Il 08/06/2015 16:33, 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 17 patches (which are also available in >>> my xenbits repo: >> http://xenbits.xen.org/gitweb/?p=people/pauldu/xen.git >>> on the emulation18 branch) as follows: >> Big thanks for your work. >> I tested them taking the patches from emulation18 branch. >> I tried xl create of a window 7 domU but during xl create dom0 >> istant-reboot and there isn't anything about the problem in the logs >> (kern.log, syslog, qemu log, xl log ecc...) >> I tried also with linux (hvm) domU and with stdvga instead qxl I had >> setted but same result. >> >> For debug the problem I must enable all xen debug in grub entry and >> redirect output to serial, similar to debug of dom0 boot problem or I >> must do different thing? >> > Having serial is very useful in these cases. I've been debugging with a 32-bit Win 7 VM so it would be useful if you could bisect bit. There are natural boundaries in the series you could try first: > > Apply everything up to and including 'x86/hvm: unify stdvga mmio intercept with standard mmio intercept' > Then try everything up to and including ' x86/hvm: remove extraneous parameter from hvmtrace_io_assist()' > Then, if you get that far, try the rest one at a time. > > Paul Thanks for reply. I tried to boot with full debug enabled and with serial on lan but server insta-reboot without show error or useful output on redirected output or monitor. I used same parameters of other debug I did long time ago if I remember good, here the grub2 entry: > menuentry 'Wheezy con Linux 3.16.0-0.bpo.4-amd64 e XEN - RAID - Debug > su Seriale' --class debian --class gnu-linux --class gnu --class os { > set root='(RAID-ROOT)' > echo 'Caricamento Hypervisor Xen...' > multiboot /boot/xen.gz placeholder dom0_mem=2G,max:3G > swiotlb=65762 loglvl=all guest_loglvl=all sync_console console_to_ring > com2=19200,8n1 console=com2 > echo 'Caricamento Linux 3.16.0-0.bpo.4-amd64...' > linux /boot/vmlinuz-3.16.0-0.bpo.4-amd64 placeholder > root=/dev/mapper/RAID-ROOT ro console=hvc0 earlyprintk=xen nomodeset > echo 'Caricamento ramdisk iniziale...' > initrd /boot/initrd.img-3.16.0-0.bpo.4-amd64 > } Here the entry without debug working: > > menuentry 'RAID - Debian 7.8 (wheezy) con Linux 3.16.0-0.bpo.4-amd64 e > XEN 4.6-unstable' --class debian --class gnu-linux --class gnu --class > os --class xen { > set fallback="1" > set root='(RAID-ROOT)' > echo 'Caricamento Hypervisor Xen 4.6-unstable...' > multiboot /boot/xen.gz placeholder dom0_mem=2G,max:3G > echo 'Caricamento Linux 3.16.0-0.bpo.4-amd64 ...' > module /boot/vmlinuz-3.16.0-0.bpo.4-amd64 placeholder > root=/dev/mapper/RAID-ROOT ro swiotlb=65762 quiet > echo 'Caricamento ramdisk iniziale...' > module /boot/initrd.img-3.16.0-0.bpo.4-amd64 > } I did something wrong? Now I'll try to bisect the patch serie following your advice. > >> Thanks for any reply and sorry for my bad english. >> >>> x86/hvm: simplify hvmemul_do_io() >>> x86/hvm: re-name struct hvm_mmio_handler to hvm_mmio_ops >>> x86/hvm: unify internal portio and mmio intercepts >>> x86/hvm: unify dpci portio intercept with standard portio intercept >>> x86/hvm: unify stdvga mmio intercept with standard mmio intercept >>> x86/hvm: revert 82ed8716b "fix direct PCI port I/O emulation retry... >>> x86/hvm: only call hvm_io_assist() from hvm_wait_for_io() >>> x86/hvm: split I/O completion handling from state model >>> x86/hvm: remove hvm_io_pending() check in hvmemul_do_io() >>> x86/hvm: remove HVMIO_dispatched I/O state >>> x86/hvm: remove hvm_io_state enumeration >>> x86/hvm: use ioreq_t to track in-flight state >>> x86/hvm: only acquire RAM pages for emulation when we need to >>> x86/hvm: remove extraneous parameter from hvmtrace_io_assist() >>> x86/hvm: make sure translated MMIO reads or writes fall within a page >>> x86/hvm: remove multiple open coded 'chunking' loops >>> x86/hvm: track large memory mapped accesses by linear address >>> >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xen.org >>> http://lists.xen.org/xen-devel