diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-12-07 09:35:39 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2022-12-07 09:35:39 +0100 |
commit | f7b51680b96ed01f681eeec9e487347b31682de0 (patch) | |
tree | 90b386ad07ef4d465666e80a363bf1dc81f72b3d /vconsole.c | |
parent | d33191174efce46b7c4be190a93637dc314a5139 (diff) | |
download | vconsole-master.tar.gz |
Diffstat (limited to 'vconsole.c')
-rw-r--r-- | vconsole.c | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -505,7 +505,18 @@ static void menu_cb_vm_run(GSimpleAction *action, struct vconsole_domain *dom = find_guest(win); if (dom) - domain_start(dom); + domain_start(dom, false); +} + +static void menu_cb_vm_run_reset_nvram(GSimpleAction *action, + GVariant *parameter, + gpointer data) +{ + struct vconsole_window *win = data; + struct vconsole_domain *dom = find_guest(win); + + if (dom) + domain_start(dom, true); } static void menu_cb_vm_run_gfx(GSimpleAction *action, @@ -517,7 +528,7 @@ static void menu_cb_vm_run_gfx(GSimpleAction *action, if (dom) { run_virt_viewer(dom, false); - domain_start(dom); + domain_start(dom, false); } } @@ -694,6 +705,9 @@ static const GActionEntry entries[] = { .name = "GuestRun", .activate = menu_cb_vm_run, },{ + .name = "GuestRunResetNvram", + .activate = menu_cb_vm_run_reset_nvram, + },{ .name = "GuestRunGfx", .activate = menu_cb_vm_run_gfx, },{ |