Re: [PATCH] xen: introduce xen_vring_use_dma

2020-07-15 Thread Stefano Stabellini
On Sat, 11 Jul 2020, Michael S. Tsirkin wrote: > On Fri, Jul 10, 2020 at 10:23:22AM -0700, Stefano Stabellini wrote: > > Sorry for the late reply -- a couple of conferences kept me busy. > > > > > > On Wed, 1 Jul 2020, Michael S. Tsirkin wrote: > > > On W

Re: [PATCH] xen: introduce xen_vring_use_dma

2020-07-10 Thread Stefano Stabellini
Sorry for the late reply -- a couple of conferences kept me busy. On Wed, 1 Jul 2020, Michael S. Tsirkin wrote: > On Wed, Jul 01, 2020 at 10:34:53AM -0700, Stefano Stabellini wrote: > > Would you be in favor of a more flexible check along the lines of the > > one propos

Re: [PATCH] xen: introduce xen_vring_use_dma

2020-07-01 Thread Stefano Stabellini
On Wed, 1 Jul 2020, Christoph Hellwig wrote: > On Mon, Jun 29, 2020 at 04:46:09PM -0700, Stefano Stabellini wrote: > > > I could imagine some future Xen hosts setting a flag somewhere in the > > > platform capability saying "no xen specific flag, rely on > > > &

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-29 Thread Stefano Stabellini
On Mon, 29 Jun 2020, Peng Fan wrote: > > > If that is the case, how is it possible that virtio breaks on ARM > > > using the default dma_ops? The breakage is not Xen related (except > > > that Xen turns dma_ops on). The original message from Peng was: > > > > > > vring_map_one_sg ->

Re: [PATCH] xen: introduce xen_vring_use_dma

2020-06-29 Thread Stefano Stabellini
On Fri, 26 Jun 2020, Michael S. Tsirkin wrote: > On Thu, Jun 25, 2020 at 10:31:27AM -0700, Stefano Stabellini wrote: > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > On Wed, Jun 24, 2020 at 02:53:54PM -0700, Stefano Stabellini wrote: > > > > On Wed, 24 Jun

Re: [PATCH] xen: introduce xen_vring_use_dma

2020-06-25 Thread Stefano Stabellini
On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > On Wed, Jun 24, 2020 at 02:53:54PM -0700, Stefano Stabellini wrote: > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > On Wed, Jun 24, 2020 at 10:59:47AM -0700, Stefano Stabellini wrote: > > > > On Wed, 24 Jun

Re: [PATCH] xen: introduce xen_vring_use_dma

2020-06-24 Thread Stefano Stabellini
On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > On Wed, Jun 24, 2020 at 10:59:47AM -0700, Stefano Stabellini wrote: > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > On Wed, Jun 24, 2020 at 05:17:32PM +0800, Peng Fan wrote: > > > > Export xen_swiotlb for a

Re: [PATCH] xen: introduce xen_vring_use_dma

2020-06-24 Thread Stefano Stabellini
On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > On Wed, Jun 24, 2020 at 05:17:32PM +0800, Peng Fan wrote: > > Export xen_swiotlb for all platforms using xen swiotlb > > > > Use xen_swiotlb to determine when vring should use dma APIs to map the > > ring: when xen_swiotlb is enabled the dma API is

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-28 Thread Stefano Stabellini
On Tue, 28 Apr 2020, Michael S. Tsirkin wrote: > On Tue, Apr 28, 2020 at 11:19:52PM +0530, Srivatsa Vaddagiri wrote: > > * Michael S. Tsirkin [2020-04-28 12:17:57]: > > > > > Okay, but how is all this virtio specific? For example, why not allow > > > separate swiotlbs for any type of device? >

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-28 Thread Stefano Stabellini
On Tue, 28 Apr 2020, Srivatsa Vaddagiri wrote: > For better security, its desirable that a guest VM's memory is > not accessible to any entity that executes outside the context of > guest VM. In case of virtio, backend drivers execute outside the > context of guest VM and in general will need

Re: VIRTIO adoption in other hypervisors

2020-02-28 Thread Stefano Stabellini
On Fri, 28 Feb 2020, Jan Kiszka wrote: > > It seems to me any KVM-like run loop trivially supports a range of > > virtio devices by virtue of trapping accesses to the signalling area of > > a virtqueue and allowing the VMM to handle the transaction which ever > > way it sees fit. > > > > I've not

Re: [PATCH v7 0/9] virtio DMA API, yet again

2016-02-03 Thread Stefano Stabellini
people: is this okay? If it doesn't work on other Xen > variants (PVH? HVM?), can you submit follow-up patches to fix it? I have been waiting for something like this for a long time: up to now it wasn't possible to use Xen inside a VM with virtio devices. You can add my: Tested-by: Stefano Sta

Re: [PATCH 01/34] Documentation/memory-barriers.txt: document __smb_mb()

2016-01-04 Thread Stefano Stabellini
On Wed, 30 Dec 2015, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > Documentation/memory-barriers.txt | 33 - > 1 file changed, 28 insertions(+), 5 deletions(-) > > diff --git a/Documentation/memory-barriers.txt >

Re: [PATCH 31/34] xenbus: use __smp_XXX barriers

2016-01-04 Thread Stefano Stabellini
non-SMP guest runs on an SMP host. > > Switch to __smp_XXX barriers which serve this exact purpose. > > Signed-off-by: Michael S. Tsirkin <m...@redhat.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> > This is straight-forward, but untested. >

Re: [PATCH v2 34/34] xen/io: use virt_xxx barriers

2016-01-04 Thread Stefano Stabellini
non-SMP guest runs on an SMP host. > > Switch to virt_xxx barriers which serve this exact purpose. > > Signed-off-by: Michael S. Tsirkin <m...@redhat.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> > include/xen/interface/io/ring.h | 16 -

Re: [PATCH 32/34] xen/io: use __smp_XXX barriers

2016-01-04 Thread Stefano Stabellini
non-SMP guest runs on an SMP host. > > Switch to __smp_XXX barriers which serve this exact purpose. > > Signed-off-by: Michael S. Tsirkin <m...@redhat.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> > include/xen/interface/io/ring.h | 16 -

Re: [Qemu-devel] [Xen-devel] new barrier type for paravirt (was Re: [PATCH] virtio_ring: use smp_store_mb)

2015-12-21 Thread Stefano Stabellini
On Mon, 21 Dec 2015, David Vrabel wrote: > On 20/12/15 09:25, Michael S. Tsirkin wrote: > > > > I noticed that drivers/xen/xenbus/xenbus_comms.c uses > > full memory barriers to communicate with the other side. > > For example: > > > > /* Must write data /after/ reading the

Re: [Xen-devel] [PATCH RFC 0/3] Xen on Virtio

2015-12-15 Thread Stefano Stabellini
On Mon, 14 Dec 2015, Andy Lutomirski wrote: > On Mon, Dec 14, 2015 at 6:12 AM, Michael S. Tsirkin <m...@redhat.com> wrote: > > On Mon, Dec 14, 2015 at 02:00:05PM +, David Vrabel wrote: > >> On 07/12/15 16:19, Stefano Stabellini wrote: > >> > Hi all, > &

[PATCH RFC 1/3] xen: export xen_phys_to_bus, xen_bus_to_phys and xen_virt_to_bus

2015-12-07 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> CC: konrad.w...@oracle.com CC: boris.ostrov...@oracle.com CC: david.vra...@citrix.com --- drivers/xen/swiotlb-xen.c | 31 --- include/xen/swiotlb-xen.h | 32 +

[PATCH RFC 2/3] xen/virtio: allocate a contiguous region to be use as virtio queue

2015-12-07 Thread Stefano Stabellini
-Xen case. Signed-off-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Alternatively we could call dma_alloc_coherent in all cases, but that would make the non-Xen code path more complex. --- drivers/virtio/virtio_pci_legacy.c | 19 +++ 1 file changed, 15 inse

[PATCH RFC 0/3] Xen on Virtio

2015-12-07 Thread Stefano Stabellini
translations in a couple of key places, without changing non-Xen code paths. You are welcome to suggest improvements or alternative implementations. Thanks, Stefano Stefano Stabellini (3): xen: export xen_phys_to_bus, xen_bus_to_phys and xen_virt_to_bus xen/virtio: allocate a contiguous

[PATCH RFC 3/3] xen/virtio_ring: introduce cpu_to_virtio_addr and virtio_addr_to_cpu

2015-12-07 Thread Stefano Stabellini
and __cpu_to_virtio64 functions after doing the phys_to_bus and bus_to_phys translations for Xen. No changes in behavior for the non-Xen case. Signed-off-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- I realize that this patch is not very nice, but at least it is easy to unde

Re: [PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-03-16 Thread Stefano Stabellini
On Mon, 10 Mar 2014, David Vrabel wrote: On 27/02/14 15:55, Zoltan Kiss wrote: (This is a continuation of [PATCH v9] xen/grant-table: Avoid m2p_override during mapping) The grant mapping API does m2p_override unnecessarily: only gntdev needs it, for blkback and future netback patches

Re: [PATCH v2] arch/x86/xen: remove depends on CONFIG_EXPERIMENTAL

2013-02-28 Thread Stefano Stabellini
...@chromium.org Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Mukesh Rathor mukesh.rat...@oracle.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- v2: - drop EXPERIMENTAL from bool and help text too. --- arch/x86/xen/Kconfig |8 +++- 1 file changed, 3 insertions

Re: [PATCH v2] arch/x86/xen: remove depends on CONFIG_EXPERIMENTAL

2013-02-28 Thread Stefano Stabellini
On Thu, 28 Feb 2013, Kees Cook wrote: On Thu, Feb 28, 2013 at 2:53 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Thu, 28 Feb 2013, Kees Cook wrote: The CONFIG_EXPERIMENTAL config item has not carried much meaning for a while now and is almost always enabled by default

Re: [Xen-devel] [PATCH] arch/x86/xen: remove depends on CONFIG_EXPERIMENTAL

2013-02-25 Thread Stefano Stabellini
On Mon, 25 Feb 2013, Ian Campbell wrote: On Sat, 2013-02-23 at 20:47 +, Stefano Stabellini wrote: On Sat, 23 Feb 2013, Konrad Rzeszutek Wilk wrote: On Sat, Feb 23, 2013 at 09:03:20AM -0800, Kees Cook wrote: On Sat, Feb 23, 2013 at 3:59 AM, Dongsheng Song dongsheng.s...@gmail.com

Re: [PATCH] arch/x86/xen: remove depends on CONFIG_EXPERIMENTAL

2013-02-25 Thread Stefano Stabellini
Cook keesc...@chromium.org Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Mukesh Rathor mukesh.rat...@oracle.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- arch/x86/xen/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

Re: [PATCH] arch/x86/xen: remove depends on CONFIG_EXPERIMENTAL

2013-02-23 Thread Stefano Stabellini
config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any depends on lines in Kconfigs. Signed-off-by: Kees Cook keesc...@chromium.org Cc: Stefano Stabellini stefano.stabell

Re: [GIT PULL] x86/mm changes for v3.9-rc1

2013-02-22 Thread Stefano Stabellini
On Fri, 22 Feb 2013, Konrad Rzeszutek Wilk wrote: On Fri, Feb 22, 2013 at 09:12:57AM -0800, H. Peter Anvin wrote: On 02/22/2013 08:55 AM, Konrad Rzeszutek Wilk wrote: What is bizzare is that I do recall testing this (and Stefano also did it). So I am not sure what has altered.

Re: [Xen-devel] linux-next: Tree for Oct 24 (xen)

2012-10-25 Thread Stefano Stabellini
On Thu, 25 Oct 2012, Jan Beulich wrote: On 24.10.12 at 23:33, Randy Dunlap rdun...@xenotime.net wrote: On 10/23/2012 09:19 PM, Stephen Rothwell wrote: Hi all, Changes since 201201023: on x86_64: drivers/built-in.o: In function `dbgp_reset_prep': (.text+0xb96b5):

Re: [Xen-devel] [PATCH] xen: remove CONFIG_XEN_DOM0 compile option

2012-01-09 Thread Stefano Stabellini
On Mon, 9 Jan 2012, Konrad Rzeszutek Wilk wrote: On Mon, Jan 09, 2012 at 11:39:44AM +, Stefano Stabellini wrote: I don't think we should add PCI_XEN SWIOTLB_XEN X86_LOCAL_APIC X86_IO_APIC ACPI PCI to XEN either. However it should be possible to add only the right dependencies

Re: [Xen-devel] [PATCH] xen: remove CONFIG_XEN_DOM0 compile option

2012-01-09 Thread Stefano Stabellini
On Mon, 9 Jan 2012, Konrad Rzeszutek Wilk wrote: On Mon, Jan 09, 2012 at 04:12:10PM +, Stefano Stabellini wrote: On Mon, 9 Jan 2012, Konrad Rzeszutek Wilk wrote: On Mon, Jan 09, 2012 at 11:39:44AM +, Stefano Stabellini wrote: I don't think we should add PCI_XEN SWIOTLB_XEN

Re: [Xen-devel] [PATCH] xen: remove CONFIG_XEN_DOM0 compile option

2012-01-09 Thread Stefano Stabellini
On Mon, 9 Jan 2012, Andrew Jones wrote: I guess if we did the s/XEN_DOM0/LOCAL_APIC IO_APIC ACPI/ in arch/x86/pci/xen.c it would be pretty easy to review for equivalence. Then keep CONFIG_PRIVILIGED, but drop XEN_DOM0 from everywhere else and compile in the 3 files. I don't think it makes

Re: [Xen-devel] [PATCH 3/4] xen kconfig: add dom0 support help text

2012-01-06 Thread Stefano Stabellini
On Fri, 6 Jan 2012, Andrew Jones wrote: Almost all of the things which dom0 needs (e.g. PCI device management etc) is also required by a domU with passthrough enabled so the savings are really very slight. We are talking less than 1k of code AFAICT, 319 bytes for arch/x86/xen/vga.o

Re: [PATCH] xen: remove CONFIG_XEN_DOM0 compile option

2012-01-06 Thread Stefano Stabellini
On Fri, 6 Jan 2012, Andrew Jones wrote: XEN_DOM0 is a silent option that has been automatically selected when CONFIG_XEN is selected since 6b0661a5e6fbf. If this option was changed to a menu configurable option then it would only give users the ability to compile out about 100 kbytes of code.

Re: [Embeddedxen-devel] [Xen-devel] [ANNOUNCE] Xen port to Cortex-A15 / ARMv7 with virt extensions

2011-12-01 Thread Stefano Stabellini
On Thu, 1 Dec 2011, Ian Campbell wrote: On Wed, 2011-11-30 at 18:32 +, Stefano Stabellini wrote: On Wed, 30 Nov 2011, Arnd Bergmann wrote: KVM and Xen at least both fall into the single-return-value category, so we should be able to agree on a calling conventions. KVM does not have

Re: [ANNOUNCE] Xen port to Cortex-A15 / ARMv7 with virt extensions

2011-11-30 Thread Stefano Stabellini
On Tue, 29 Nov 2011, Arnd Bergmann wrote: On Tuesday 29 November 2011, Stefano Stabellini wrote: Hi all, a few weeks ago I (and a few others) started hacking on a proof-of-concept hypervisor port to Cortex-A15 which uses and requires ARMv7 virtualization extensions. The intention

Re: [ANNOUNCE] Xen port to Cortex-A15 / ARMv7 with virt extensions

2011-11-30 Thread Stefano Stabellini
On Wed, 30 Nov 2011, Anup Patel wrote: Hi all, I wanted to know how Xen-ARM for A15 will address following concerns: - How will Xen-ARM for A15 support legacy guest environment like ARMv5 or ARMv6 ? It is not our focus at the moment; we are targeting operating systems that support a

Re: [ANNOUNCE] Xen port to Cortex-A15 / ARMv7 with virt extensions

2011-11-30 Thread Stefano Stabellini
On Wed, 30 Nov 2011, Catalin Marinas wrote: On 30 November 2011 11:39, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: A git branch is available here (not ready for submission): git://xenbits.xen.org/people/sstabellini/linux-pvhvm.git arm the branch above is based on git

Re: [Embeddedxen-devel] [Xen-devel] [ANNOUNCE] Xen port to Cortex-A15 / ARMv7 with virt extensions

2011-11-30 Thread Stefano Stabellini
On Wed, 30 Nov 2011, Arnd Bergmann wrote: In principal we could also offer the user options as to which particular platform a guest looks like. At least when using a qemu based simulation. Most platforms have some characteristics that are not meaningful in a classic virtualization

[ANNOUNCE] Xen port to Cortex-A15 / ARMv7 with virt extensions

2011-11-29 Thread Stefano Stabellini
Hi all, a few weeks ago I (and a few others) started hacking on a proof-of-concept hypervisor port to Cortex-A15 which uses and requires ARMv7 virtualization extensions. The intention of this work was to find out how to best support ARM v7+ on Xen. See

Re: [Xen-devel] Re: [PATCH] Modpost section mismatch fix (for platform-pci-unplug.c)

2011-07-11 Thread Stefano Stabellini
On Fri, 8 Jul 2011, Konrad Rzeszutek Wilk wrote: Also, I had sent another change (oneline) for the file arch/x86/xen/platform-pci-unplug.c for check_platform_magic, looks like that has not gone into the pull request for Linus. Oh, I didn't see it. Did you CC me on it? Can you

Re: xen PV on HVM and initial domain merge in linux-next

2010-10-21 Thread Stefano Stabellini
On Thu, 21 Oct 2010, Stephen Rothwell wrote: Hi Stefano, On Wed, 20 Oct 2010 16:47:51 +0100 Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Good idea, I have created a link called linux-next to 2.6.36-rc8-initial-domain-v5 so the following should also work: git

Re: xen PV on HVM and initial domain merge in linux-next

2010-10-20 Thread Stefano Stabellini
On Wed, 20 Oct 2010, Stephen Rothwell wrote: Hi Stefano, [just casting the net a bit wider ...] On Tue, 19 Oct 2010 18:51:47 +0100 Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: I forgot to CC the LKML and linux-next... On Tue, 19 Oct 2010, Stefano Stabellini wrote

Re: xen PV on HVM and initial domain merge in linux-next

2010-10-20 Thread Stefano Stabellini
On Wed, 20 Oct 2010, Konrad Rzeszutek Wilk wrote: The patches touch the Xen PCI components, so: Acked-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com And yeah, we need to update the MAINTAINERS file. Let me spin one out with the folks who are currently involved in this. Thanks All

Re: [Qemu-devel] Re: Configuration vs. compat hints

2009-06-15 Thread Stefano Stabellini
Avi Kivity wrote: (I'd be quite happy constructing the entire machine config on the command line, but I realize it's just me) It is not just you. ___ Virtualization mailing list Virtualization@lists.linux-foundation.org