Re: [PATCH 02/44] KVM: Initialize IRQ FD after arch hardware setup

2022-11-04 Thread Sean Christopherson
On Fri, Nov 04, 2022, Chao Gao wrote: > On Wed, Nov 02, 2022 at 11:18:29PM +, Sean Christopherson wrote: > > > >+r = kvm_irqfd_init(); > >+if (r) > >+goto err_irqfd; > >+ > > r = kvm_async_pf_init(); > > if (r) > >-goto out_free_4; > >+goto e

Re: [PATCH 02/44] KVM: Initialize IRQ FD after arch hardware setup

2022-11-03 Thread Chao Gao
On Wed, Nov 02, 2022 at 11:18:29PM +, Sean Christopherson wrote: > >+ r = kvm_irqfd_init(); >+ if (r) >+ goto err_irqfd; >+ > r = kvm_async_pf_init(); > if (r) >- goto out_free_4; >+ goto err_async_pf; > > kvm_chardev_ops.owne

[PATCH 02/44] KVM: Initialize IRQ FD after arch hardware setup

2022-11-02 Thread Sean Christopherson
Move initialization of KVM's IRQ FD workqueue below arch hardware setup as a step towards consolidating arch "init" and "hardware setup", and eventually towards dropping the hooks entirely. There is no dependency on the workqueue being created before hardware setup, the workqueue is used only when