]> Git Repo - qemu.git/commit
fw_cfg: unbreak migration compatibility for 2.4 and earlier machines
authorLaszlo Ersek <[email protected]>
Thu, 18 Feb 2016 19:31:00 +0000 (20:31 +0100)
committerGerd Hoffmann <[email protected]>
Fri, 26 Feb 2016 09:06:40 +0000 (10:06 +0100)
commite6915b5f3a874a467a9a65f7ec1d6ef8d251a51a
tree571a711b449bf556e5b1529be77e17a5432b37c9
parent0c6940d086f39bbf725d96104abe46da87429cb6
fw_cfg: unbreak migration compatibility for 2.4 and earlier machines

When I reviewed Marc's fw_cfg DMA patches, I completely missed that the
way we set dma_enabled would break migration.

Gerd explained the right way (see reference below): dma_enabled should be
set to true by default, and only true->false transitions should be
possible:

- when the user requests that with

    -global fw_cfg_mem.dma_enabled=off

  or

   -global fw_cfg_io.dma_enabled=off

  as appropriate for the platform,

- when HW_COMPAT_2_4 dictates it,

- when board code initializes fw_cfg without requesting DMA support.

Cc: Marc MarĂ­ <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Alexandre DERUMIER <[email protected]>
Cc: [email protected]
Ref: http://thread.gmane.org/gmane.comp.emulators.qemu/390272/focus=391042
Ref: https://bugs.launchpad.net/qemu/+bug/1536487
Suggested-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Laszlo Ersek <[email protected]>
Message-id: 1455823860[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/nvram/fw_cfg.c
include/hw/compat.h
This page took 0.022455 seconds and 4 git commands to generate.