Message ID | 23202.31050.607695.817387@mariner.uk.xensource.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Ian Jackson writes ("Re: [PATCH 03/11] xen: defer call to xen_restrict until just before os_setup_post"): > Ian Jackson writes ("Re: [PATCH 03/11] xen: defer call to xen_restrict until just before os_setup_post"): > > How about this ? > > And here's the corresponding change to the Xen-specific patch. I should say that I have build-tested this but not executed it yet. If it seems like the right direction I'll run some tests this afternoon and resend the whole series. Ian.
diff --git a/hw/xen/xen-common.c b/hw/xen/xen-common.c index 8ede246..6ec14c7 100644 --- a/hw/xen/xen-common.c +++ b/hw/xen/xen-common.c @@ -122,7 +122,7 @@ static void xen_change_state_handler(void *opaque, int running, } } -void xen_setup_post(void) +static void xen_setup_post(MachineState *ms, AccelState *accel) { int rc; @@ -183,6 +183,7 @@ static void xen_accel_class_init(ObjectClass *oc, void *data) AccelClass *ac = ACCEL_CLASS(oc); ac->name = "Xen"; ac->init_machine = xen_init; + ac->setup_post = xen_setup_post; ac->allowed = &xen_allowed; ac->global_props = xen_compat_props; } diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 6b785a4..d24ad09 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -92,8 +92,6 @@ void qemu_remove_machine_init_done_notifier(Notifier *notify); void qemu_announce_self(void); -void xen_setup_post(void); - extern int autostart; typedef enum { diff --git a/stubs/xen-hvm.c b/stubs/xen-hvm.c index 48ca8da..7787ea2 100644 --- a/stubs/xen-hvm.c +++ b/stubs/xen-hvm.c @@ -62,7 +62,3 @@ void xen_hvm_init(PCMachineState *pcms, MemoryRegion **ram_memory) void qmp_xen_set_global_dirty_log(bool enable, Error **errp) { } - -void xen_setup_post(void) -{ -} diff --git a/vl.c b/vl.c index 3fd6401..f52a9f4 100644 --- a/vl.c +++ b/vl.c @@ -4720,7 +4720,6 @@ int main(int argc, char **argv, char **envp) } accel_setup_post(current_machine); - xen_setup_post(); os_setup_post(); main_loop();