<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/virt/kvm/eventfd.c, branch linux-5.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-11-15T14:49:11Z</updated>
<entry>
<title>kvm/eventfd: Drain events from eventfd in irqfd_wakeup()</title>
<updated>2020-11-15T14:49:11Z</updated>
<author>
<name>David Woodhouse</name>
</author>
<published>2020-10-27T13:55:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b59e00dd8cda75fc8303c9f6847ac720b10664e3'/>
<id>urn:sha1:b59e00dd8cda75fc8303c9f6847ac720b10664e3</id>
<content type='text'>
Don't allow the events to accumulate in the eventfd counter, drain them
as they are handled.

Signed-off-by: David Woodhouse &lt;dwmw@amazon.co.uk&gt;
Message-Id: &lt;20201027135523.646811-4-dwmw2@infradead.org&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>kvm/eventfd: Use priority waitqueue to catch events before userspace</title>
<updated>2020-11-15T14:49:10Z</updated>
<author>
<name>David Woodhouse</name>
</author>
<published>2020-10-26T17:53:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8dbf19508a112d125190df77ee0464b7ba56192'/>
<id>urn:sha1:e8dbf19508a112d125190df77ee0464b7ba56192</id>
<content type='text'>
As far as I can tell, when we use posted interrupts we silently cut off
the events from userspace, if it's listening on the same eventfd that
feeds the irqfd.

I like that behaviour. Let's do it all the time, even without posted
interrupts. It makes it much easier to handle IRQ remapping invalidation
without having to constantly add/remove the fd from the userspace poll
set. We can just leave userspace polling on it, and the bypass will...
well... bypass it.

Signed-off-by: David Woodhouse &lt;dwmw@amazon.co.uk&gt;
Message-Id: &lt;20201026175325.585623-2-dwmw2@infradead.org&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>kvm/eventfd: move wildcard calculation outside loop</title>
<updated>2020-09-28T11:57:08Z</updated>
<author>
<name>Yi Li</name>
</author>
<published>2020-09-11T05:56:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2fc4f15dac952b9bbc2695c9040f2c17be70dabb'/>
<id>urn:sha1:2fc4f15dac952b9bbc2695c9040f2c17be70dabb</id>
<content type='text'>
There is no need to calculate wildcard in each iteration
since wildcard is not changed.

Signed-off-by: Yi Li &lt;yili@winhong.com&gt;
Message-Id: &lt;20200911055652.3041762-1-yili@winhong.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>kvm/eventfd: Use sequence counter with associated spinlock</title>
<updated>2020-07-29T14:14:29Z</updated>
<author>
<name>Ahmed S. Darwish</name>
</author>
<published>2020-07-20T15:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c73b9a2b1b4ecc809a914aa64970157b3d8c936'/>
<id>urn:sha1:5c73b9a2b1b4ecc809a914aa64970157b3d8c936</id>
<content type='text'>
A sequence counter write side critical section must be protected by some
form of locking to serialize writers. A plain seqcount_t does not
contain the information of which lock must be held when entering a write
side critical section.

Use the new seqcount_spinlock_t data type, which allows to associate a
spinlock with the sequence counter. This enables lockdep to verify that
the spinlock used for writer serialization is held when the write side
critical section is entered.

If lockdep is disabled this lock association is compiled out and has
neither storage size nor runtime overhead.

Signed-off-by: Ahmed S. Darwish &lt;a.darwish@linutronix.de&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Acked-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Link: https://lkml.kernel.org/r/20200720155530.1173732-24-a.darwish@linutronix.de
</content>
</entry>
<entry>
<title>Merge tag 'kvmarm-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD</title>
<updated>2020-06-01T08:26:27Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2020-06-01T08:26:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=380609445cff6ee7b6c7e43bbdc953985b45a6ed'/>
<id>urn:sha1:380609445cff6ee7b6c7e43bbdc953985b45a6ed</id>
<content type='text'>
KVM/arm64 updates for Linux 5.8:

- Move the arch-specific code into arch/arm64/kvm
- Start the post-32bit cleanup
- Cherry-pick a few non-invasive pre-NV patches
</content>
</entry>
<entry>
<title>KVM: Fix spelling in code comments</title>
<updated>2020-05-16T14:05:01Z</updated>
<author>
<name>Fuad Tabba</name>
</author>
<published>2020-04-01T14:03:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=656012c731fcfd0f770007366e2b952a613745f2'/>
<id>urn:sha1:656012c731fcfd0f770007366e2b952a613745f2</id>
<content type='text'>
Fix spelling and typos (e.g., repeated words) in comments.

Signed-off-by: Fuad Tabba &lt;tabba@google.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20200401140310.29701-1-tabba@google.com
</content>
</entry>
<entry>
<title>kvm/eventfd: remove unneeded conversion to bool</title>
<updated>2020-05-13T16:14:58Z</updated>
<author>
<name>Jason Yan</name>
</author>
<published>2020-04-20T12:38:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c4e115f08c08cb9f3b70247b42323e40b9afd1fd'/>
<id>urn:sha1:c4e115f08c08cb9f3b70247b42323e40b9afd1fd</id>
<content type='text'>
The '==' expression itself is bool, no need to convert it to bool again.
This fixes the following coccicheck warning:

virt/kvm/eventfd.c:724:38-43: WARNING: conversion to bool not needed
here

Signed-off-by: Jason Yan &lt;yanaijie@huawei.com&gt;
Message-Id: &lt;20200420123805.4494-1-yanaijie@huawei.com&gt;
Reviewed-by: Peter Xu &lt;peterx@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 504</title>
<updated>2019-06-19T15:09:56Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2019-06-04T08:11:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=775c8a3d7187b82e15ebfdae486d8ab32e017b4b'/>
<id>urn:sha1:775c8a3d7187b82e15ebfdae486d8ab32e017b4b</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this file is free software you can redistribute it and or modify it
  under the terms of version 2 of the gnu general public license as
  published by the free software foundation this program is
  distributed in the hope that it will be useful but without any
  warranty without even the implied warranty of merchantability or
  fitness for a particular purpose see the gnu general public license
  for more details you should have received a copy of the gnu general
  public license along with this program if not write to the free
  software foundation inc 51 franklin st fifth floor boston ma 02110
  1301 usa

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 8 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Reviewed-by: Enrico Weigelt &lt;info@metux.net&gt;
Reviewed-by: Kate Stewart &lt;kstewart@linuxfoundation.org&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081207.443595178@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kvm: Check irqchip mode before assign irqfd</title>
<updated>2019-05-24T19:27:12Z</updated>
<author>
<name>Peter Xu</name>
</author>
<published>2019-05-05T08:56:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=654f1f13ea56b92bacade8ce2725aea0457f91c0'/>
<id>urn:sha1:654f1f13ea56b92bacade8ce2725aea0457f91c0</id>
<content type='text'>
When assigning kvm irqfd we didn't check the irqchip mode but we allow
KVM_IRQFD to succeed with all the irqchip modes.  However it does not
make much sense to create irqfd even without the kernel chips.  Let's
provide a arch-dependent helper to check whether a specific irqfd is
allowed by the arch.  At least for x86, it should make sense to check:

- when irqchip mode is NONE, all irqfds should be disallowed, and,

- when irqchip mode is SPLIT, irqfds that are with resamplefd should
  be disallowed.

For either of the case, previously we'll silently ignore the irq or
the irq ack event if the irqchip mode is incorrect.  However that can
cause misterious guest behaviors and it can be hard to triage.  Let's
fail KVM_IRQFD even earlier to detect these incorrect configurations.

CC: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
CC: Radim Krčmář &lt;rkrcmar@redhat.com&gt;
CC: Alex Williamson &lt;alex.williamson@redhat.com&gt;
CC: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Signed-off-by: Peter Xu &lt;peterx@redhat.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>kvm: don't redefine flags as something else</title>
<updated>2019-03-28T16:28:59Z</updated>
<author>
<name>Sebastian Andrzej Siewior</name>
</author>
<published>2019-03-15T17:58:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca0488aadd014809862428cde896a6a6e8f13e42'/>
<id>urn:sha1:ca0488aadd014809862428cde896a6a6e8f13e42</id>
<content type='text'>
The function irqfd_wakeup() has flags defined as __poll_t and then it
has additional flags which is used for irqflags.

Redefine the inner flags variable as iflags so it does not shadow the
outer flags.

Cc: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Cc: "Radim Krčmář" &lt;rkrcmar@redhat.com&gt;
Cc: kvm@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
