mac_nvram: Add block backend to persist NVRAM contents
commit1f7888e2250adf3f4cffc24f7be29f062e095480
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 2 Feb 2023 00:24:05 +0000 (2 01:24 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 6 Feb 2023 11:41:39 +0000 (6 11:41 +0000)
treef7ebde8d2749f6dbd0dac7a332fef8ab17521409
parent1d0c537985abf5c497498f985b746ebe3e0cca54
mac_nvram: Add block backend to persist NVRAM contents

Add a way to set a backing store for the mac_nvram similar to what
spapr_nvram or mac_via PRAM already does to allow to save its contents
between runs.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <4b1605a9e484cc95f6e141f297487a070fd418ac.1675297286.git.balaton@eik.bme.hu>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/nvram/mac_nvram.c
include/hw/nvram/mac_nvram.h