1. 01 12月, 2016 1 次提交
    • M
      spapr: fix default DRC state for coldplugged LMBs · 5c0139a8
      Michael Roth 提交于
      Currently we set the initial isolation/allocation state for DRCs
      associated with coldplugged LMBs to ISOLATED/UNUSABLE,
      respectively, under the assumption that the guest will move this
      state to UNISOLATED/USABLE.
      
      In fact, this is only the case for LMBs added via hotplug. For
      coldplugged LMBs, the guest actually assumes the initial state to
      be UNISOLATED/USABLE.
      
      In practice, this only becomes an issue when we attempt to unplug
      one of these LMBs, where the guest kernel will issue an
      rtas-get-sensor-state call to check that the corresponding DRC is
      in an USABLE state before it will release the LMB back to
      QEMU. If the returned state is otherwise, the guest will assume no
      further action is needed, which bypasses the QEMU-side cleanup that
      occurs during the USABLE->UNUSABLE transition. This results in
      LMBs and their corresponding pc-dimm devices to stick around
      indefinitely.
      
      This patch fixes the issue by manually setting DRCs associated with
      cold-plugged LMBs to UNISOLATED/ALLOCATED, but leaving the hotplug
      state untouched. As it turns out, this is analogous to the handling
      for cold-plugged CPUs in spapr_core_plug().
      
      Cc: qemu-ppc@nongnu.org
      Cc: David Gibson <david@gibson.dropbear.id.au>
      Cc: Bharata B Rao <bharata@linux.vnet.ibm.com>
      Cc: Greg Kurz <gkurz@linux.vnet.ibm.com>
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      5c0139a8
  2. 30 11月, 2016 3 次提交
  3. 29 11月, 2016 11 次提交
  4. 28 11月, 2016 8 次提交
  5. 26 11月, 2016 1 次提交
    • E
      target-i386: Remove unused local_err variable · 685479bd
      Eduardo Habkost 提交于
      local_err can never be set to non-NULL. Remove the variable.
      
      Detected by Coverity:
      
          *** CID 1365201:  Possible Control flow issues  (DEADCODE)
          /target-i386/cpu.c: 2050 in x86_cpu_parse_featurestr()
          2044             prop->value = g_strdup(val);
          2045             prop->errp = &error_fatal;
          2046             qdev_prop_register_global(prop);
          2047         }
          2048
          2049         if (local_err) {
          >>>     CID 1365201:  Possible Control flow issues  (DEADCODE)
          >>>     Execution cannot reach this statement: "error_propagate(errp, local...".
          2050             error_propagate(errp, local_err);
          2051         }
          2052     }
          2053
          2054     static void x86_cpu_load_features(X86CPU *cpu, Error **errp);
          2055     static int x86_cpu_filter_features(X86CPU *cpu);
      Reported-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1480087313-15102-1-git-send-email-ehabkost@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      685479bd
  6. 25 11月, 2016 7 次提交
  7. 24 11月, 2016 6 次提交
  8. 23 11月, 2016 3 次提交