• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Virtual machine Management Terminal User Interface


Commit MetaInfo

Révision639c9a5d6859358caa98fe0d7e6b8b567ac19e04 (tree)
l'heure2022-07-27 21:06:29
AuteurKoine Yuusuke(koinec) <koinec@user...>
CommiterKoine Yuusuke(koinec)

Message de Log

Support for VM START command.

Change Summary

Modification

--- a/src/reqctl.c
+++ b/src/reqctl.c
@@ -71,6 +71,8 @@ int
7171 assert( NULL != p_req );
7272
7373 p_req->b_reqcmd = b_reqcmd;
74+ p_req->i_hvid = i_hvid;
75+ p_req->i_guest = i_guest;
7476
7577 Request_Release( p_req );
7678
--- a/src/tuikey.c
+++ b/src/tuikey.c
@@ -241,6 +241,7 @@ int
241241 {
242242 int i_ret = 0x00;
243243 int i_hvisor;
244+ int i_guest;
244245
245246 switch( i_key ) {
246247 // Quit VMTUI ----
@@ -279,6 +280,13 @@ int
279280 { HvCmd_Connect( i_hvisor, 0x01 ); }
280281 break;
281282
283+ // For Guestr Key *****************
284+ // Start Guest ----
285+ case 'S':
286+ if( VMLIST_TYPE_GUEST ==TuiVmList_GetCursorInfo( &i_hvisor, &i_guest ) )
287+ { TuiKey_ChangeMode( TUIKEY_MODE_YESNO, REQUEST_CMD_VM_START, i_hvisor, i_guest ); }
288+ break;
289+
282290 // Test Code ----
283291 case 't':
284292 TuiKey_TestCode();
--- a/src/vmbhyve.h
+++ b/src/vmbhyve.h
@@ -37,6 +37,7 @@
3737 #endif
3838
3939 #ifdef VMTUI_SRC_VMBHYVE
40+int VmBhyve_ExecReq_VM_START( Request *p_req, int i_guest, void *pv_hvcon );
4041 int VmBhyve_ExecReq_VMLIST( Request *p_req, int i_guest, void *pv_hvcon );
4142 #endif
4243
@@ -45,15 +46,15 @@ int VmBhyve_ExecReq_VMLIST( Request *p_req, int i_guest, void *pv_hvcon );
4546 ExecRequestFunc VmBhyve_ExecRequest[]
4647 = {
4748 // 0x0*
48- ReqCtl_Cmd_Default, // CMD_NONE
49- ReqCtl_Cmd_Default, // CMD_EXIT
50- ReqCtl_Cmd_Default, // CMD_HV_CONNECT
51- ReqCtl_Cmd_Default, // CMD_HV_DISCONNECT
52-
53- ReqCtl_Cmd_Default, // CMD_HV_RECONNECT
54- VmBhyve_ExecReq_VMLIST, // CMD_VMLIST
55- ReqCtl_Cmd_Default,
56- ReqCtl_Cmd_Default,
49+ ReqCtl_Cmd_Default, // CMD_NONE
50+ ReqCtl_Cmd_Default, // CMD_EXIT
51+ ReqCtl_Cmd_Default, // CMD_HV_CONNECT
52+ ReqCtl_Cmd_Default, // CMD_HV_DISCONNECT
53+
54+ ReqCtl_Cmd_Default, // CMD_HV_RECONNECT
55+ VmBhyve_ExecReq_VMLIST, // CMD_VMLIST
56+ VmBhyve_ExecReq_VM_START, // CMD_VM_START
57+ ReqCtl_Cmd_Default, // CMD_VM_STOP
5758
5859 ReqCtl_Cmd_Default,
5960 ReqCtl_Cmd_Default,