[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 1/6] spapr: Start hotplugged PCI devices in ISOLAT
From: |
Greg Kurz |
Subject: |
Re: [Qemu-ppc] [PATCH 1/6] spapr: Start hotplugged PCI devices in ISOLATED state |
Date: |
Mon, 19 Jun 2017 12:11:57 +0200 |
On Thu, 8 Jun 2017 15:09:25 +1000
David Gibson <address@hidden> wrote:
> PCI DRCs, and only PCI DRCs, are immediately moved to UNISOLATED isolation
> state once the device is attached. This has been there from the initial
> implementation, and it's not clear why.
>
> The state diagram in PAPR 13.4 suggests PCI devices should start in
> ISOLATED state until the guest moves them into UNISOLATED, and the code in
> the guest-side drmgr tool seems to work that way too.
>
> Signed-off-by: David Gibson <address@hidden>
> Reviewed-by: Michael Roth <address@hidden>
> ---
Reviewed-by: Greg Kurz <address@hidden>
> hw/ppc/spapr_drc.c | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/hw/ppc/spapr_drc.c b/hw/ppc/spapr_drc.c
> index 15ef67d..6186f79 100644
> --- a/hw/ppc/spapr_drc.c
> +++ b/hw/ppc/spapr_drc.c
> @@ -315,16 +315,6 @@ void spapr_drc_attach(sPAPRDRConnector *drc, DeviceState
> *d, void *fdt,
> }
> g_assert(fdt || coldplug);
>
> - /* NOTE: setting initial isolation state to UNISOLATED means we can't
> - * detach unless guest has a userspace/kernel that moves this state
> - * back to ISOLATED in response to an unplug event, or this is done
> - * manually by the admin prior. if we force things while the guest
> - * may be accessing the device, we can easily crash the guest, so we
> - * we defer completion of removal in such cases to the reset() hook.
> - */
> - if (spapr_drc_type(drc) == SPAPR_DR_CONNECTOR_TYPE_PCI) {
> - drc->isolation_state = SPAPR_DR_ISOLATION_STATE_UNISOLATED;
> - }
> drc->dr_indicator = SPAPR_DR_INDICATOR_ACTIVE;
>
> drc->dev = d;
pgpKfrIyBGczv.pgp
Description: OpenPGP digital signature
- Re: [Qemu-ppc] [PATCH 2/6] spapr: Eliminate DRC 'signalled' state variable, (continued)
- [Qemu-ppc] [PATCH 3/6] spapr: Split DRC release from DRC detach, David Gibson, 2017/06/08
- [Qemu-ppc] [PATCH 4/6] spapr: Make DRC reset force DRC into known state, David Gibson, 2017/06/08
- [Qemu-ppc] [PATCH 5/6] spapr: Clean up DRC set_allocation_state path, David Gibson, 2017/06/08
- [Qemu-ppc] [PATCH 1/6] spapr: Start hotplugged PCI devices in ISOLATED state, David Gibson, 2017/06/08
- Re: [Qemu-ppc] [PATCH 1/6] spapr: Start hotplugged PCI devices in ISOLATED state,
Greg Kurz <=
- [Qemu-ppc] [PATCH 6/6] spapr: Clean up DRC set_isolation_state() path, David Gibson, 2017/06/08
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/6] spapr: DRC cleanups (part IV), Laurent Vivier, 2017/06/15
- Re: [Qemu-ppc] [PATCH 0/6] spapr: DRC cleanups (part IV), Michael Roth, 2017/06/19
- Re: [Qemu-ppc] [PATCH 0/6] spapr: DRC cleanups (part IV), David Gibson, 2017/06/19