Re: [Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-07-01 Thread Igor Mammedov
On Fri, 21 Jun 2019 02:46:50 -0400 "Michael S. Tsirkin" wrote: > During boot, linux guests tend to clear all bits in pcie slot status > register which is used for hotplug. > If they clear bits that weren't set this is racy and will lose events: > not a big problem for manual hotplug on bare-metal

Re: [Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-07-01 Thread Michael S. Tsirkin
On Mon, Jul 01, 2019 at 02:04:02PM +0200, Igor Mammedov wrote: > On Mon, 1 Jul 2019 05:20:41 -0400 > "Michael S. Tsirkin" wrote: > > > On Tue, Jun 25, 2019 at 03:07:30PM +0200, Igor Mammedov wrote: > > > On Fri, 21 Jun 2019 02:46:50 -0400 > > > "Michael S. Tsirkin" wrote: > > > > > > > During

Re: [Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-07-01 Thread Igor Mammedov
On Mon, 1 Jul 2019 05:20:41 -0400 "Michael S. Tsirkin" wrote: > On Tue, Jun 25, 2019 at 03:07:30PM +0200, Igor Mammedov wrote: > > On Fri, 21 Jun 2019 02:46:50 -0400 > > "Michael S. Tsirkin" wrote: > > > > > During boot, linux guests tend to clear all bits in pcie slot status > > > register w

Re: [Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-07-01 Thread Michael S. Tsirkin
On Tue, Jun 25, 2019 at 03:07:30PM +0200, Igor Mammedov wrote: > On Fri, 21 Jun 2019 02:46:50 -0400 > "Michael S. Tsirkin" wrote: > > > During boot, linux guests tend to clear all bits in pcie slot status > > register which is used for hotplug. > > If they clear bits that weren't set this is racy

Re: [Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-07-01 Thread Marcel Apfelbaum
CCing qemu-devel On 7/1/19 11:57 AM, Igor Mammedov wrote: On Mon, 1 Jul 2019 10:04:01 +0300 Marcel Apfelbaum wrote: On 6/21/19 9:46 AM, Michael S. Tsirkin wrote: During boot, linux guests tend to clear all bits in pcie slot status register which is used for hotplug. If they clear bits that w

Re: [Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-07-01 Thread Marcel Apfelbaum
CCing qemu-devel On 7/1/19 11:57 AM, Igor Mammedov wrote: On Mon, 1 Jul 2019 10:04:01 +0300 Marcel Apfelbaum wrote: On 6/21/19 9:46 AM, Michael S. Tsirkin wrote: During boot, linux guests tend to clear all bits in pcie slot status register which is used for hotplug. If they clear bits that w

Re: [Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-07-01 Thread Marcel Apfelbaum
On 6/21/19 9:46 AM, Michael S. Tsirkin wrote: During boot, linux guests tend to clear all bits in pcie slot status register which is used for hotplug. If they clear bits that weren't set this is racy and will lose events: not a big problem for manual hotplug on bare-metal, but a problem for us

Re: [Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-06-25 Thread Igor Mammedov
On Fri, 21 Jun 2019 02:46:50 -0400 "Michael S. Tsirkin" wrote: > During boot, linux guests tend to clear all bits in pcie slot status > register which is used for hotplug. > If they clear bits that weren't set this is racy and will lose events: > not a big problem for manual hotplug on bare-metal

[Qemu-devel] [PATCH 3/3] pcie: work around for racy guest init

2019-06-20 Thread Michael S. Tsirkin
During boot, linux guests tend to clear all bits in pcie slot status register which is used for hotplug. If they clear bits that weren't set this is racy and will lose events: not a big problem for manual hotplug on bare-metal, but a problem for us. For example, the following is broken ATM: /x86_