Skip to content

Commit

Permalink
HVM-758 Add a qmp entry for hw setup complete
Browse files Browse the repository at this point in the history
  • Loading branch information
rmustacc committed Nov 19, 2012
1 parent 13dfaeb commit 67c6e40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor.c
Expand Up @@ -2617,8 +2617,8 @@ static void do_info_status_print(Monitor *mon, const QObject *data)

static void do_info_status(Monitor *mon, QObject **ret_data)
{
*ret_data = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i }",
vm_running, singlestep);
*ret_data = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i, 'hwsetup': %i }",
vm_running, singlestep, vm_setup);
}

static qemu_acl *find_acl(Monitor *mon, const char *name)
Expand Down
1 change: 1 addition & 0 deletions sysemu.h
Expand Up @@ -25,6 +25,7 @@ extern const char *bios_name;
char *qemu_find_file(int type, const char *name);

extern int vm_running;
extern int vm_setup;
extern const char *qemu_name;
extern uint8_t qemu_uuid[];
int qemu_uuid_parse(const char *str, uint8_t *uuid);
Expand Down
2 changes: 2 additions & 0 deletions vl.c
Expand Up @@ -187,6 +187,7 @@ int mem_prealloc = 0; /* force preallocation of physical target memory */
int nb_nics;
NICInfo nd_table[MAX_NICS];
int vm_running;
int vm_setup = 0;
int autostart;
int incoming_expected; /* Started with -incoming and waiting for incoming */
static int rtc_utc = 1;
Expand Down Expand Up @@ -3169,6 +3170,7 @@ int main(int argc, char **argv, char **envp)
}

qdev_machine_creation_done();
vm_setup = 1;

if (rom_load_all() != 0) {
fprintf(stderr, "rom loading failed\n");
Expand Down

0 comments on commit 67c6e40

Please sign in to comment.