Re: [Xen-devel] q35 support in Xen

2017-09-18 Thread Alexey G
On Sun, 17 Sep 2017 10:49:12 +0800 Yi Sun wrote: > On 17-09-15 23:12:58, Alexey G wrote: > > On Thu, 14 Sep 2017 16:39:32 +0800 > > Yi Sun wrote: > > > > > Hi, Alexey, > > > > > > Have you submitted the patches? If yes, could you please shar

Re: [Xen-devel] q35 support in Xen

2017-09-15 Thread Alexey G
Hi, On Thu, 14 Sep 2017 16:39:32 +0800 Yi Sun wrote: > Hi, Alexey, > > Have you submitted the patches? If yes, could you please share the link? Sorry, had a lot of work recently -- so far I've managed to submit only the bugfix for mentioned xen-mapcache issue with emulated AHCI DMA I/O, which

Re: [Xen-devel] "MMIO emulation failed" from booting OVMF on Xen v4.9.0

2017-08-17 Thread Alexey G
On Thu, 17 Aug 2017 11:56:06 +0100 Andrew Cooper wrote: > On 17/08/17 09:49, Jan Beulich wrote: > On 16.08.17 at 20:47, wrote: > >> Hey, > >> > >> As per Andrew [Cooper]'s suggestion, writing here instead of #xen on > >> Freenode. > >> > >> I'm trying out Xen (4.9.0) with OVMF (r21243.38

Re: [Xen-devel] Xen on Intel Atom E3815: crash, no output

2017-07-31 Thread Alexey G
Hi Stefano, On Mon, 31 Jul 2017 16:39:37 -0700 (PDT) Stefano Stabellini wrote: > I noticed that Xen does not boot on Intel Atom E3815. The system is a > Dell Edge Gateway 3003: > > http://i.dell.com/sites/doccontent/shared-content/data-sheets/en/Documents/Dell_Edge_Gateway_3000_Series_spec_shee

Re: [Xen-devel] [Bug] Intel RMRR support with upstream Qemu

2017-07-25 Thread Alexey G
On Tue, 25 Jul 2017 15:13:17 +0100 Igor Druzhinin wrote: > >> The algorithm implemented in hvmloader for that is not complicated and > >> can be moved to libxl easily. What we can do is to provision a hole big > >> enough to include all the initially assigned PCI devices. We can also > >> account

Re: [Xen-devel] [Bug] Intel RMRR support with upstream Qemu

2017-07-25 Thread Alexey G
On Mon, 24 Jul 2017 21:39:08 +0100 Igor Druzhinin wrote: > > But, the problem is that overall MMIO hole(s) requirements are not known > > exactly at the time the HVM domain being created. Some PCI devices will > > be emulated, some will be merely passed through and yet there will be > > some RMRR

Re: [Xen-devel] [Bug] Intel RMRR support with upstream Qemu

2017-07-24 Thread Alexey G
On Mon, 24 Jul 2017 18:01:39 +0100 Andrew Cooper wrote: > On 24/07/17 17:42, Alexey G wrote: > > Hi, > > > > On Mon, 24 Jul 2017 10:53:16 +0100 > > Igor Druzhinin wrote: > >>> [Zhang, Xiong Y] Thanks for your suggestion. > >>> Indeed, if

Re: [Xen-devel] [Bug] Intel RMRR support with upstream Qemu

2017-07-24 Thread Alexey G
Hi, On Mon, 24 Jul 2017 10:53:16 +0100 Igor Druzhinin wrote: > > [Zhang, Xiong Y] Thanks for your suggestion. > > Indeed, if I set mmi_hole >= 4G - RMRR_Base, this could fix my issue. > > For this I still have two questions, could you help me ? > > 1) If hvmloader do low memory relocation, hvmloa

Re: [Xen-devel] [Bug] Intel RMRR support with upstream Qemu

2017-07-24 Thread Alexey G
Hi, On Mon, 24 Jul 2017 08:07:02 + "Zhang, Xiong Y" wrote: > [Zhang, Xiong Y] Thanks for your suggestion. > Indeed, if I set mmi_hole >= 4G - RMRR_Base, this could fix my issue. > For this I still have two questions, could you help me ? > 1) If hvmloader do low memory relocation, hvmloader a

Re: [Xen-devel] [Bug] Intel RMRR support with upstream Qemu

2017-07-21 Thread Alexey G
> On Fri, 21 Jul 2017 10:57:55 + > "Zhang, Xiong Y" wrote: > > > On an intel skylake machine with upstream qemu, if I add > > "rdm=strategy=host, policy=strict" to hvm.cfg, win 8.1 DomU couldn't > > boot up and continues reboot. > > > > Steps to reproduce this issue: > > > > 1) Boot x

Re: [Xen-devel] [Bug] Intel RMRR support with upstream Qemu

2017-07-21 Thread Alexey G
Hi, On Fri, 21 Jul 2017 10:57:55 + "Zhang, Xiong Y" wrote: > On an intel skylake machine with upstream qemu, if I add > "rdm=strategy=host, policy=strict" to hvm.cfg, win 8.1 DomU couldn't boot > up and continues reboot. > > Steps to reproduce this issue: > > 1) Boot xen with iommu=1

Re: [Xen-devel] [PATCH] xen-mapcache: Fix the bug when overlapping emulated DMA operations may cause inconsistency in guest memory mappings

2017-07-19 Thread Alexey G
On Wed, 19 Jul 2017 11:00:26 -0700 (PDT) Stefano Stabellini wrote: > My expectation is that unlocked mappings are much more frequent than > locked mappings. Also, I expect that only very rarely we'll be able to > reuse locked mappings. Over the course of a VM lifetime, it seems to me > that walki

Re: [Xen-devel] [PATCH] xen-mapcache: Fix the bug when overlapping emulated DMA operations may cause inconsistency in guest memory mappings

2017-07-19 Thread Alexey G
Stefano, On Tue, 18 Jul 2017 15:17:25 -0700 (PDT) Stefano Stabellini wrote: > > The patch modifies the behavior in which MapCacheEntry's are added to > > the list, avoiding duplicates. > > I take that the idea is to always go through the whole list to check for > duplicate locked entries, rig

[Xen-devel] [PATCH] xen-mapcache: Fix the bug when overlapping emulated DMA operations may cause inconsistency in guest memory mappings

2017-07-10 Thread Alexey G
Under certain circumstances normal xen-mapcache functioning may be broken by guest's actions. This may lead to either QEMU performing exit() due to a caught bad pointer (and with QEMU process gone the guest domain simply appears hung afterwards) or actual use of the incorrect pointer inside QEMU a

Re: [Xen-devel] q35 support in Xen

2017-06-29 Thread Alexey G
Hi, > I saw Anthony's patch, but your extension patch seems still in > development. Do you have plan to upstream it? I'm also interested in > this basically I want full PCI-e passthru capability (Current Xen does > support passthru a PCI-e device but guest can't see configuration offset > 256-4095

Re: [Xen-devel] q35 support in Xen

2017-06-28 Thread Alexey G
Hi, > >> On Mon, Jun 26, 2017 at 01:55:56PM -0400, Jason Dickens wrote: > >>> I would like to inquire about q35 support in Xen? As far as I have been > >>> able to tell, this has not been done? In the Xen version that I've been > >>> working with (4.4), libxl_dm overrides any "-machine" argument

Re: [Xen-devel] [Qemu-devel] [RFC/BUG] xen-mapcache: buggy invalidate map cache?

2017-04-11 Thread Alexey G
On Tue, 11 Apr 2017 15:32:09 -0700 (PDT) Stefano Stabellini wrote: > On Tue, 11 Apr 2017, hrg wrote: > > On Tue, Apr 11, 2017 at 3:50 AM, Stefano Stabellini > > wrote: > > > On Mon, 10 Apr 2017, Stefano Stabellini wrote: > > >> On Mon, 10 Apr 2017, hrg wrote: > > >> > On Sun, Apr 9, 2017 a

Re: [Xen-devel] [Qemu-devel] [RFC/BUG] xen-mapcache: buggy invalidate map cache?

2017-04-09 Thread Alexey G
On Mon, 10 Apr 2017 00:36:02 +0800 hrg wrote: Hi, > On Sun, Apr 9, 2017 at 11:55 PM, hrg wrote: > > On Sun, Apr 9, 2017 at 11:52 PM, hrg wrote: > >> Hi, > >> > >> In xen_map_cache_unlocked(), map to guest memory maybe in entry->next > >> instead of first level entry (if map to rom other than