From 0be71e324f774a77243f1a1487f468232d69542b Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Fri, 25 Jun 2010 11:09:07 -0600 Subject: savevm: Add DeviceState param When available, we'd like to be able to access the DeviceState when registering a savevm. For buses with a get_dev_path() function, this will allow us to create more unique savevm id strings. Signed-off-by: Alex Williamson Signed-off-by: Anthony Liguori --- hw/max111x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/max111x.c') diff --git a/hw/max111x.c b/hw/max111x.c index bd656bb534..2844665ba3 100644 --- a/hw/max111x.c +++ b/hw/max111x.c @@ -143,7 +143,8 @@ static int max111x_init(SSISlave *dev, int inputs) s->input[7] = 0x80; s->com = 0; - register_savevm("max111x", -1, 0, max111x_save, max111x_load, s); + register_savevm(&dev->qdev, "max111x", -1, 0, + max111x_save, max111x_load, s); return 0; } -- cgit v1.2.3