On Mon, Nov 17, 2014 at 10:47:56AM +0800, Chen, Tiejun wrote:
On 2014/11/5 22:09, Michael S. Tsirkin wrote:
On Wed, Nov 05, 2014 at 03:22:59PM +0800, Tiejun Chen wrote:
Currently IGD drivers always need to access PCH by 1f.0, and
PCH vendor/device id is used to identify the card.
Signed-off
On Mon, Nov 17, 2014 at 07:18:17PM +0800, Chen, Tiejun wrote:
On 2014/11/17 18:13, Michael S. Tsirkin wrote:
On Mon, Nov 17, 2014 at 05:42:12PM +0800, Chen, Tiejun wrote:
On 2014/11/17 17:25, Michael S. Tsirkin wrote:
On Mon, Nov 17, 2014 at 04:48:32PM +0800, Chen, Tiejun wrote:
On 2014/11/17
On Tue, Aug 12, 2014 at 05:49:13PM +0800, Tiejun Chen wrote:
v5:
* Simplify to make sure its really inherited from the standard one in patch #3
* Then drop the original patch #3
I carried
i440fx: make types configurable at run-time
pc_init1: pass parameters just with types
On Wed, Apr 01, 2015 at 10:41:12AM +0100, Andrew Cooper wrote:
On 01/04/15 10:20, Stefano Stabellini wrote:
CC'ing the author of the patch and xen-devel.
FYI I think that Jan is going to be on vacation for a couple of weeks.
On Wed, 1 Apr 2015, Michael S. Tsirkin wrote:
On Tue, Mar 31
On Mon, Mar 23, 2015 at 12:20:47PM -0500, Bjorn Helgaas wrote:
pci_iomap_range() already makes a cacheable mapping if
IORESOURCE_CACHEABLE; I'm guessing that you would like it to
automatically use WC if the BAR if IORESOURCE_PREFETCH, e.g.,
if (flags IORESOURCE_CACHEABLE)
return
On Tue, Apr 21, 2015 at 07:52:49PM +0200, Luis R. Rodriguez wrote:
On Thu, Mar 26, 2015 at 04:00:54AM +0100, Luis R. Rodriguez wrote:
On Mon, Mar 23, 2015 at 12:20:47PM -0500, Bjorn Helgaas wrote:
Hi Luis,
This seems OK to me,
Great.
but I'm curious about a few things.
On Mon, Apr 13, 2015 at 01:51:06PM +0100, Jan Beulich wrote:
On 13.04.15 at 14:47, m...@redhat.com wrote:
On Mon, Apr 13, 2015 at 01:40:59PM +0100, Jan Beulich wrote:
Quite possible. Looking at the ITP log we were provided, the UR
severity bit is clear (non-fatal), yet the error got
On Mon, Apr 20, 2015 at 03:08:09PM +0100, Jan Beulich wrote:
On 20.04.15 at 15:43, m...@redhat.com wrote:
On Mon, Apr 13, 2015 at 01:51:06PM +0100, Jan Beulich wrote:
On 13.04.15 at 14:47, m...@redhat.com wrote:
Can you check device capabilities register, offset 0x4 within
pci express
On Thu, May 14, 2015 at 02:02:04PM +0200, Markus Armbruster wrote:
Correct.
Here's how I think it should be done:
* Create a machine option to control the FDC
This is a machine-specific option. It should only exist for machine
types that have an optional FDC.
Default must be
On Thu, May 14, 2015 at 03:25:39PM +0200, Sander Eikelenboom wrote:
Thursday, May 14, 2015, 2:53:17 PM, you wrote:
On 14/05/2015 14:45, Markus Armbruster wrote:
Paolo Bonzini pbonz...@redhat.com writes:
On 14/05/2015 14:02, Markus Armbruster wrote:
It should certainly be off
On Thu, May 14, 2015 at 01:54:22PM +0200, Paolo Bonzini wrote:
On 14/05/2015 13:47, Michael S. Tsirkin wrote:
I would be OK with a new property too, as we could set it from
libxl or libvirt. Anybody would be happy to pick this one up or should I
do it?
Pls go ahead, I can merge
On Wed, May 13, 2015 at 06:29:46PM +0100, Stefano Stabellini wrote:
Do not emulate a floppy drive if no drives are supposed to be present.
This fixes the behavior of -nodefaults, that should remove the floppy
drive (see docs/qdev-device-use.txt:Default Devices), but actually
doesn't.
On Thu, May 14, 2015 at 12:18:26PM +0100, Daniel P. Berrange wrote:
On Thu, May 14, 2015 at 12:12:52PM +0100, Stefano Stabellini wrote:
On Wed, 13 May 2015, John Snow wrote:
On 05/13/2015 02:15 PM, Stefano Stabellini wrote:
On Wed, 13 May 2015, Daniel P. Berrange wrote:
On Wed, May
On Thu, May 14, 2015 at 12:12:52PM +0100, Stefano Stabellini wrote:
I would be OK with a new property too, as we could set it from
libxl or libvirt. Anybody would be happy to pick this one up or should I
do it?
Pls go ahead, I can merge it in the pc tree.
--
MST
On Thu, May 14, 2015 at 06:38:24AM +0200, Stefan Weil wrote:
Am 13.05.2015 um 20:15 schrieb Stefano Stabellini:
On Wed, 13 May 2015, Daniel P. Berrange wrote:
On Wed, May 13, 2015 at 06:29:46PM +0100, Stefano Stabellini wrote:
Do not emulate a floppy drive if no drives are supposed to be
On Mon, Apr 13, 2015 at 12:34:34PM +0100, Jan Beulich wrote:
On 13.04.15 at 13:19, m...@redhat.com wrote:
Yes Linux can't fix firmware 1st mode, but
PCI express spec says what firmware should do in this case:
IMPLEMENTATION NOTE Software UR Reporting Compatibility with 1.0a Devices
is going to be on vacation for a couple of weeks.
On Wed, 1 Apr 2015, Michael S. Tsirkin wrote:
On Tue, Mar 31, 2015 at 03:18:03PM +0100, Stefano Stabellini wrote:
From: Jan Beulich jbeul...@suse.com
Otherwise the guest can abuse that control to cause e.g. PCIe
Unsupported Request
On Mon, Apr 13, 2015 at 01:40:59PM +0100, Jan Beulich wrote:
On 13.04.15 at 13:47, m...@redhat.com wrote:
On Mon, Apr 13, 2015 at 12:34:34PM +0100, Jan Beulich wrote:
On 13.04.15 at 13:19, m...@redhat.com wrote:
Yes Linux can't fix firmware 1st mode, but
PCI express spec says what
this patch set is applied.
Michael S. Tsirkin:
You need some other API that makes sense, probably PCI specific.
This is basically patch #2: Extend device listener interface...
This is relying on undocumented assumptions and how specific
firmware works. There's nothing
On Tue, Jun 09, 2015 at 09:18:49AM +, Paul Durrant wrote:
-Original Message-
From: Michael S. Tsirkin [mailto:m...@redhat.com]
Sent: 09 June 2015 10:13
To: Don Slutz
Cc: qemu-de...@nongnu.org; xen-devel@lists.xen.org; Paul Durrant;
Stefano Stabellini
Subject: Re: [PATCH
On Mon, Jun 08, 2015 at 09:09:15AM +0100, Malcolm Crossley wrote:
On 08/06/15 08:42, Jan Beulich wrote:
On 07.06.15 at 08:23, m...@redhat.com wrote:
On Mon, Apr 20, 2015 at 04:32:12PM +0200, Michael S. Tsirkin wrote:
On Mon, Apr 20, 2015 at 03:08:09PM +0100, Jan Beulich wrote:
On 20.04.15
On Mon, Jun 08, 2015 at 10:03:18AM +0100, Jan Beulich wrote:
On 08.06.15 at 10:09, malcolm.cross...@citrix.com wrote:
On 08/06/15 08:42, Jan Beulich wrote:
Not really. All we concluded so far is that _maybe_ the bridge, upon
seeing the UR, generates a Master Abort, rendering the whole
On Mon, Jun 08, 2015 at 08:42:57AM +0100, Jan Beulich wrote:
On 07.06.15 at 08:23, m...@redhat.com wrote:
On Mon, Apr 20, 2015 at 04:32:12PM +0200, Michael S. Tsirkin wrote:
On Mon, Apr 20, 2015 at 03:08:09PM +0100, Jan Beulich wrote:
On 20.04.15 at 15:43, m...@redhat.com wrote
On Mon, Jun 08, 2015 at 11:55:22AM +0100, Jan Beulich wrote:
On 08.06.15 at 11:36, m...@redhat.com wrote:
On Mon, Jun 08, 2015 at 10:03:18AM +0100, Jan Beulich wrote:
On 08.06.15 at 10:09, malcolm.cross...@citrix.com wrote:
I believe the correct behaviour is happening but a PCIE
On Tue, Jun 09, 2015 at 02:14:29PM +, Paul Durrant wrote:
-Original Message-
From: Michael S. Tsirkin [mailto:m...@redhat.com]
Sent: 09 June 2015 13:30
To: Paul Durrant
Cc: Don Slutz; qemu-de...@nongnu.org; xen-devel@lists.xen.org; Stefano
Stabellini
Subject: Re: [PATCH
On Wed, Jun 10, 2015 at 08:00:55AM +0100, Jan Beulich wrote:
On 08.06.15 at 13:28, m...@redhat.com wrote:
On Mon, Jun 08, 2015 at 11:55:22AM +0100, Jan Beulich wrote:
while function 0 has
0x10: Base Address Register 0 = 0xca23000c (Memory space, 64-bit access,
prefetchable)
0x18:
On Wed, Jun 10, 2015 at 08:08:37AM +0100, Jan Beulich wrote:
On 08.06.15 at 11:30, m...@redhat.com wrote:
What happens if you disable SERR# in the command register
of 83:00.1?
We've just been told that with SERR not enabled in any of the
sibling endpoints the NMI still occurs. Not really
On Wed, Jun 10, 2015 at 01:06:27PM +0100, Jan Beulich wrote:
On 10.06.15 at 13:43, m...@redhat.com wrote:
On Wed, Jun 10, 2015 at 08:00:55AM +0100, Jan Beulich wrote:
On 08.06.15 at 13:28, m...@redhat.com wrote:
On Mon, Jun 08, 2015 at 11:55:22AM +0100, Jan Beulich wrote:
while
On Tue, Jun 09, 2015 at 10:58:26AM +, Paul Durrant wrote:
-Original Message-
From: Michael S. Tsirkin [mailto:m...@redhat.com]
Sent: 09 June 2015 11:52
To: Paul Durrant
Cc: Don Slutz; qemu-de...@nongnu.org; xen-devel@lists.xen.org; Stefano
Stabellini
Subject: Re: [PATCH
On Mon, Apr 20, 2015 at 04:32:12PM +0200, Michael S. Tsirkin wrote:
On Mon, Apr 20, 2015 at 03:08:09PM +0100, Jan Beulich wrote:
On 20.04.15 at 15:43, m...@redhat.com wrote:
On Mon, Apr 13, 2015 at 01:51:06PM +0100, Jan Beulich wrote:
On 13.04.15 at 14:47, m...@redhat.com wrote:
Can
On Tue, Jul 28, 2015 at 02:46:20PM +0200, Paolo Bonzini wrote:
On 28/07/2015 12:12, Benjamin Herrenschmidt wrote:
That is an experimental feature (it's x-iommu), so it can change.
The plan was:
- for PPC, virtio never honors IOMMU
- for non-PPC, either have virtio
On Mon, Jul 27, 2015 at 06:08:59PM -0700, Andy Lutomirski wrote:
On Mon, Sep 1, 2014 at 10:39 AM, Andy Lutomirski l...@amacapital.net wrote:
This fixes virtio on Xen guests as well as on any other platform
that uses virtio_pci on which physical addresses don't match bus
addresses.
This
: Stefano Stabellini stefano.stabell...@eu.citrix.com
Tested-by: Michael S. Tsirkin m...@redhat.com
---
include/hw/xen/xen_common.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/xen/xen_common.h b/include/hw/xen/xen_common.h
index 38f29fb..ed5fd3e 100644
From: Eduardo Habkost <ehabk...@redhat.com>
Remove arguments that can be found in PCMachineState.
Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
Reviewed-by: Michael S. Tsirkin <m...@redhat.com>
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
include/hw
On Thu, Sep 10, 2015 at 11:29:18AM +0100, Stefano Stabellini wrote:
> CC Michael
>
> On Thu, 10 Sep 2015, Stefano Stabellini wrote:
> > On Thu, 10 Sep 2015, Chen, Tiejun wrote:
> > > > xen-host-pci-device.c is only compiled if CONFIG_XEN_PCI_PASSTHROUGH
> > > > was set by configure. That won't be
On Thu, Sep 10, 2015 at 12:26:21PM +0100, Stefano Stabellini wrote:
> On Thu, 10 Sep 2015, Michael S. Tsirkin wrote:
> > On Thu, Sep 10, 2015 at 11:29:18AM +0100, Stefano Stabellini wrote:
> > > CC Michael
> > >
> > > On Thu, 10 Sep 2015, Stefano Stabellin
On Thu, Sep 10, 2015 at 01:00:35PM +0100, Stefano Stabellini wrote:
> On Thu, 10 Sep 2015, Michael S. Tsirkin wrote:
> > On Thu, Sep 10, 2015 at 12:26:21PM +0100, Stefano Stabellini wrote:
> > > On Thu, 10 Sep 2015, Michael S. Tsirkin wrote:
> > > > On Thu, Se
On Wed, Dec 02, 2015 at 04:56:21PM +, Stefano Stabellini wrote:
> On Xen MSIs can be remapped into pirqs, which are a type of event
> channels. It's mostly for the benefit of PCI passthrough devices, to
> avoid the overhead of interacting with the emulated lapic.
>
> However remapping
On Wed, Dec 02, 2015 at 05:16:18PM +, Stefano Stabellini wrote:
> On Wed, 2 Dec 2015, Michael S. Tsirkin wrote:
> > On Wed, Dec 02, 2015 at 04:56:21PM +, Stefano Stabellini wrote:
> > > On Xen MSIs can be remapped into pirqs, which are a type of event
> >
On Mon, Dec 14, 2015 at 02:00:05PM +, David Vrabel wrote:
> On 07/12/15 16:19, Stefano Stabellini wrote:
> > Hi all,
> >
> > this patch series introduces support for running Linux on top of Xen
> > inside a virtual machine with virtio devices (nested virt scenario).
> > The problem is that
On Mon, Dec 14, 2015 at 10:27:52AM -0800, 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 Stabell
On Mon, Jan 04, 2016 at 04:03:39PM +0100, Martin Schwidefsky wrote:
> On Mon, 4 Jan 2016 14:20:42 +0100
> Peter Zijlstra <pet...@infradead.org> wrote:
>
> > On Thu, Dec 31, 2015 at 09:06:30PM +0200, Michael S. Tsirkin wrote:
> > > On s390 read_barrier_dep
On Mon, Jan 04, 2016 at 08:47:53AM -0800, Joe Perches wrote:
> On Mon, 2016-01-04 at 13:37 +0200, Michael S. Tsirkin wrote:
> > Add virt_ barriers to list of barriers to check for
> > presence of a comment.
>
> Are these virt_ barriers used anywhere?
>
> I see som
On Mon, Jan 04, 2016 at 02:54:20PM +0100, Peter Zijlstra wrote:
> On Mon, Jan 04, 2016 at 02:36:58PM +0100, Peter Zijlstra wrote:
> > On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wrote:
> > > On Sat, Jan 02, 2016 at 11:24:38AM +, Russell King - ARM Linux wrot
On Mon, Jan 04, 2016 at 02:45:25PM +0100, Peter Zijlstra wrote:
> On Thu, Dec 31, 2015 at 09:08:38PM +0200, Michael S. Tsirkin wrote:
> > This defines __smp_xxx barriers for s390,
> > for use by virtualization.
> >
> > Some smp_xxx barriers are removed as they are
&
On Mon, Jan 04, 2016 at 02:36:58PM +0100, Peter Zijlstra wrote:
> On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wrote:
> > On Sat, Jan 02, 2016 at 11:24:38AM +, Russell King - ARM Linux wrote:
>
> > > My only concern is that it gives people an a
On Mon, Jan 04, 2016 at 02:20:42PM +0100, Peter Zijlstra wrote:
> On Thu, Dec 31, 2015 at 09:06:30PM +0200, Michael S. Tsirkin wrote:
> > On s390 read_barrier_depends, smp_read_barrier_depends
> > smp_store_mb(), smp_mb__before_atomic and smp_mb__after_atomic match the
> >
On Mon, Jan 04, 2016 at 08:07:40AM -0800, Joe Perches wrote:
> On Mon, 2016-01-04 at 13:36 +0200, Michael S. Tsirkin wrote:
> > SMP-only barriers were missing in checkpatch.pl
> >
> > Refactor code slightly to make adding more variants easier.
> >
> > Sig
As part of memory barrier cleanup, this patchset
extends checkpatch to make it easier to stop
incorrect memory barrier usage.
This applies on top of my series
arch: barrier cleanup + barriers for virt
and will be included in the next version of the series.
Michael S. Tsirkin (3
ch test so it will trigger a warning.
Reported-by: Russell King <li...@arm.linux.org.uk>
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
scripts/checkpatch.pl | 11 +++
1 file changed, 11 insertions(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 0
SMP-only barriers were missing in checkpatch.pl
Refactor code slightly to make adding more variants easier.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
scripts/checkpatch.pl | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/s
Add virt_ barriers to list of barriers to check for
presence of a comment.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
scripts/checkpatch.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e3f9ad9..5
/barrier.h here to make sure the file is self-contained.
Suggested-by: David Vrabel <david.vra...@citrix.com>
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
This is on top of my series:
arch: barrier cleanup + barriers for virt
and will be included in v3 of the series.
On Tue, Jan 05, 2016 at 09:36:55AM +0800, Boqun Feng wrote:
> Hi Michael,
>
> On Thu, Dec 31, 2015 at 09:07:42PM +0200, Michael S. Tsirkin wrote:
> > This defines __smp_xxx barriers for powerpc
> > for use by virtualization.
> >
> > smp_xxx barriers are removed
On Tue, Jan 05, 2016 at 09:13:19AM +0100, Martin Schwidefsky wrote:
> On Mon, 4 Jan 2016 22:18:58 +0200
> "Michael S. Tsirkin" <m...@redhat.com> wrote:
>
> > On Mon, Jan 04, 2016 at 02:45:25PM +0100, Peter Zijlstra wrote:
> > > On Thu, Dec 31, 2015 at 09
On Fri, Jan 01, 2016 at 08:23:46PM +0300, Sergei Shtylyov wrote:
> Hello.
>
> On 12/31/2015 10:09 PM, Michael S. Tsirkin wrote:
>
> >We need a full barrier after writing out event index, using
> >virt_store_mb there seems better than open-coding. As usual, we need
On Sat, Jan 02, 2016 at 11:24:38AM +, Russell King - ARM Linux wrote:
> On Thu, Dec 31, 2015 at 09:07:59PM +0200, Michael S. Tsirkin wrote:
> > This defines __smp_xxx barriers for arm,
> > for use by virtualization.
> >
> > smp_xxx barriers are removed as they are
&
On Tue, Jan 05, 2016 at 05:53:41PM +0800, Boqun Feng wrote:
> On Tue, Jan 05, 2016 at 10:51:17AM +0200, Michael S. Tsirkin wrote:
> > On Tue, Jan 05, 2016 at 09:36:55AM +0800, Boqun Feng wrote:
> > > Hi Michael,
> > >
> > > On Thu, Dec 31, 2015 at 09:07:
On Tue, Jan 05, 2016 at 04:39:37PM +0100, Christian Borntraeger wrote:
> On 01/05/2016 10:30 AM, Michael S. Tsirkin wrote:
>
> >
> > arch/s390/kernel/vdso.c:smp_mb();
> >
> > Looking at
> > Author: Christian Borntraeger <borntrae...@de.ibm.c
On Mon, Jan 04, 2016 at 01:59:34PM +, Russell King - ARM Linux wrote:
> On Mon, Jan 04, 2016 at 02:54:20PM +0100, Peter Zijlstra wrote:
> > On Mon, Jan 04, 2016 at 02:36:58PM +0100, Peter Zijlstra wrote:
> > > On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wro
-by: Michael S. Tsirkin <m...@redhat.com>
---
arch/sh/include/asm/barrier.h | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/arch/sh/include/asm/barrier.h b/arch/sh/include/asm/barrier.h
index f887c64..0cc5735 100644
--- a/arch/sh/include/asm/barrier.h
+++ b/arch/sh/i
.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
include/linux/virtio_ring.h | 12
drivers/virtio/virtio_ring.c | 15 +--
2 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/include/linux/virtio_ring.h b/include/linux/virtio_ring.h
index f3fa55b..3
This defines __smp_xxx barriers for sparc,
for use by virtualization.
smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/sparc/include/asm/barr
/barriers.h) and smp_mb__before_llsc (for use elsewhere on this
architecture).
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/mips/include/asm/barrier.h | 26 ++
1 file changed, 14 insertions(+), 12 deletions(-)
This defines __smp_xxx barriers for s390,
for use by virtualization.
Some smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
Note: smp_mb, smp_rmb and smp_wmb are defined as full barriers
unconditionally on this architecture.
Signed-off-by: Michael S. Tsirkin
-by: David Miller <da...@davemloft.net>
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
include/asm-generic/barrier.h | 11 +++
Documentation/memory-barriers.txt | 28 +++-
2 files changed, 34 insertions(+), 5 deletions(-)
diff --git a/include
for !SMP.
We switch to __smp_XXX barriers in the next patch.
Cc: Peter Zijlstra <pet...@infradead.org>
Cc: Alexander Duyck <alexander.du...@gmail.com>
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
include/linux/virtio_ring.h | 23 +++
1 file changed, 1
gt;
Cc: Alexander Duyck <alexander.du...@gmail.com>
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
include/linux/virtio_ring.h | 25 -
1 file changed, 4 insertions(+), 21 deletions(-)
diff --git a/include/linux/virtio_ring.h b/include/linux/virtio_ring.h
inde
This defines __smp_xxx barriers for x86,
for use by virtualization.
smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/x86/include/asm/ba
This defines __smp_xxx barriers for xtensa,
for use by virtualization.
smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/xtensa/include/asm/b
As on most architectures, on x86 read_barrier_depends and
smp_read_barrier_depends are empty. Drop the local definitions and pull
the generic ones from asm-generic/barrier.h instead: they are identical.
This is in preparation to refactoring this code area.
Signed-off-by: Michael S. Tsirkin &l
On x86/um CONFIG_SMP is never defined. As a result, several macros
match the asm-generic variant exactly. Drop the local definitions and
pull in asm-generic/barrier.h instead.
This is in preparation to refactoring this code area.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
This defines __smp_xxx barriers for arm,
for use by virtualization.
smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
This reduces the amount of arch-specific boiler-plate code.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Be
.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/metag/include/asm/barrier.h | 25 ++---
1 file changed, 2 insertions(+), 23 deletions(-)
diff --git a/arch/metag/include/asm/barrier.h b/arch/metag/include/asm/bar
This defines __smp_xxx barriers for blackfin,
for use by virtualization.
smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/blackfin/include/asm/b
This defines __smp_xxx barriers for ia64,
for use by virtualization.
smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
This reduces the amount of arch-specific boiler-plate code.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Tony Luck &
between
SMP and !SMP. For this reason, this patch introduces a wrapper
metag_fence() that doesn't depend on CONFIG_SMP.
fence() is then defined using that, depending on CONFIG_SMP.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/metag
sh variant of smp_store_mb() calls xchg() on !SMP which is stronger than
implied by both the name and the documentation.
define __smp_store_mb instead: code in asm-generic/barrier.h
will then define smp_store_mb correctly depending on
CONFIG_SMP.
Signed-off-by: Michael S. Tsirkin &l
This defines __smp_xxx barriers for tile,
for use by virtualization.
Some smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
Note: for 32 bit, keep smp_mb__after_atomic around since it's faster
than the generic implementation.
Signed-off-by: Michael S. Tsirkin
to refactoring this code area.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/arm/include/asm/barrier.h | 23 +--
1 file changed, 1 insertion(+), 22 deletions(-)
diff --git a/arch/arm/include/asm/barrier.h b/arch/arm
.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/mips/include/asm/barrier.h | 25 ++---
1 file changed, 2 insertions(+), 23 deletions(-)
diff --git a/arch/mips/include/asm/barrier.h b/arch/mips/include/asm/barrier.h
i
-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/s390/include/asm/barrier.h | 10 ++
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/arch/s390/include/asm/barrier.h b/arch/s390/include/asm/barrier.h
index 7ffd0b1..c358c31 10064
From: Davidlohr Bueso
With commit b92b8b35a2e ("locking/arch: Rename set_mb() to smp_store_mb()")
it was made clear that the context of this call (and thus set_mb)
is strictly for CPU ordering, as opposed to IO. As such all archs
should use the smp variant of mb(), respecting
ones or barrier() depending on
SMP, identically for all architectures.
We keep ifndef guards around them for now - once/if all
architectures are converted to use the generic
code, we'll be able to remove these.
Suggested-by: Peter Zijlstra <pet...@infradead.org>
Signed-off-by: Michael S. Tsir
This defines __smp_xxx barriers for arm64,
for use by virtualization.
smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
Note: arm64 does not support !SMP config,
so smp_xxx and __smp_xxx are always equivalent.
Signed-off-by: Michael S. Tsirkin <m...@redhat.
to
the generic version, drop that as well.
This is in preparation to refactoring this code area.
Note: nop() was in processor.h and not in barrier.h as on other
architectures. Nothing seems to depend on it being there though.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Be
-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/arm64/include/asm/barrier.h | 9 +
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/arch/arm64/include/asm/barrier.h b/arch/arm64/include/asm/barrier.h
index 9622eb4..91
-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Bergmann <a...@arndb.de>
---
arch/powerpc/include/asm/barrier.h | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/arch/powerpc/include/asm/barrier.h
b/arch/powerpc/include/asm/barrier.h
index a7af5fb..98
This defines __smp_xxx barriers for powerpc
for use by virtualization.
smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h
This reduces the amount of arch-specific boiler-plate code.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Arnd Be
this exact purpose.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
drivers/xen/xenbus/xenbus_comms.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/xen/xenbus/xenbus_comms.c
b/drivers/xen/xenbus/xenbus_comms.c
index fdb0f33..ecdecce 100644
--- a/d
this exact purpose.
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
---
include/xen/interface/io/ring.h | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/xen/interface/io/ring.h b/include/xen/interface/io/ring.h
index 7dc685b..21f4fbd 100644
--- a/i
asm-generic/barrier.h defines a nop() macro.
To be able to use this header on ia64, we shouldn't
call local functions/variables nop().
There's one instance where this breaks on ia64:
rename the function to iosapic_nop to avoid the conflict.
Signed-off-by: Michael S. Tsirkin <m...@redhat.
Allow architectures to override smp_store_release
and smp_load_acquire by guarding the defines
in asm-generic/barrier.h with ifndef directives.
This is in preparation to reusing asm-generic/barrier.h
on architectures which have their own definition
of these macros.
Signed-off-by: Michael S
On ia64 smp_rmb, smp_wmb, read_barrier_depends, smp_read_barrier_depends
and smp_store_mb() match the asm-generic variants exactly. Drop the
local definitions and pull in asm-generic/barrier.h instead.
This is in preparation to refactoring this code area.
Signed-off-by: Michael S. Tsirkin &l
y code is not optimal:
if anyone cares, pls send me a patch to apply on top.
I didn't build this architecture, but intel's 0-day
infrastructure builds it.
tested on x86
Davidlohr Bueso (1):
lcoking/barriers, arch: Use smp barriers in smp_store_release()
Michael S. Tsirkin (33):
asm-generic:
On Fri, Jan 01, 2016 at 11:39:40AM +0200, Michael S. Tsirkin wrote:
> virtio ring uses smp_wmb on SMP and wmb on !SMP,
> the reason for the later being that it might be
> talking to another kernel on the same SMP machine.
>
> This is exactly what __smp_XXX barriers
On Tue, Jan 05, 2016 at 01:08:52PM +0100, Martin Schwidefsky wrote:
> On Tue, 5 Jan 2016 11:30:19 +0200
> "Michael S. Tsirkin" <m...@redhat.com> wrote:
>
> > On Tue, Jan 05, 2016 at 09:13:19AM +0100, Martin Schwidefsky wrote:
> > > On Mon, 4 Jan 2016 22:1
On Tue, Jan 05, 2016 at 12:41:27PM +0100, Gerd Hoffmann wrote:
> Hi,
>
> We have some code in our tree to support pci passthrough of intel
> graphics devices (igd) on xen, which requires some chipset tweaks
> for (a) the host bridge and (b) the lpc/isa-bridge to meat the
> expectations of the
On Wed, Jan 06, 2016 at 09:51:52AM +0800, Boqun Feng wrote:
> On Tue, Jan 05, 2016 at 06:16:48PM +0200, Michael S. Tsirkin wrote:
> [snip]
> > > > > Another thing is that smp_lwsync() may have a third user(other than
> > > > > smp_load_acquire() and smp_store_r
On Mon, Jan 04, 2016 at 02:11:37PM -0800, Joe Perches wrote:
> On Mon, 2016-01-04 at 23:07 +0200, Michael S. Tsirkin wrote:
> > On Mon, Jan 04, 2016 at 08:47:53AM -0800, Joe Perches wrote:
> > > On Mon, 2016-01-04 at 13:37 +0200, Michael S. Tsirkin wrote:
> > > &
1 - 100 of 193 matches
Mail list logo