• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FreeBSD bhyve keyboard layout patch


Commit MetaInfo

Revisãob74a2a2e75cbc10d0bbc6ff15ad60d859ffe3d20 (tree)
Hora2021-05-03 22:32:34
AutorKoine Yuusuke(koinec) <koinec@user...>
CommiterKoine Yuusuke(koinec)

Mensagem de Log

* Update for FreeBSD 13.0-RELASE.(Along with this, the patch filename was changed)
* Fix the following issues on the FreeBSD review site. (Addition of CS_MSG_CLIENT_QEMU constant) (https://reviews.freebsd.org/D29430)

Mudança Sumário

  • delete: qemu_ext_keyevent_msg/{bhyve_qemu_ext_key_event_msg_fbsd13c.patch => bhyve_qemu_ext_key_event_msg_fbsd130r.patch}

Diff

--- a/qemu_ext_keyevent_msg/bhyve_qemu_ext_key_event_msg_fbsd13c.patch
+++ b/qemu_ext_keyevent_msg/bhyve_qemu_ext_key_event_msg_fbsd130r.patch
@@ -1,6 +1,6 @@
11 diff -uprN bhyve_orig/console.c bhyve/console.c
2---- bhyve_orig/console.c 2020-12-24 09:12:34.000000000 +0900
3-+++ bhyve/console.c 2020-12-30 21:50:53.384428000 +0900
2+--- bhyve_orig/console.c 2021-04-09 09:24:13.000000000 +0900
3++++ bhyve/console.c 2021-05-03 13:11:57.869902000 +0900
44 @@ -106,10 +106,10 @@ console_ptr_register(ptr_event_func_t event_cb, void *
55 }
66
@@ -15,8 +15,8 @@ diff -uprN bhyve_orig/console.c bhyve/console.c
1515
1616 void
1717 diff -uprN bhyve_orig/console.h bhyve/console.h
18---- bhyve_orig/console.h 2020-12-24 09:12:34.000000000 +0900
19-+++ bhyve/console.h 2020-12-30 21:50:53.385443000 +0900
18+--- bhyve_orig/console.h 2021-04-09 09:24:13.000000000 +0900
19++++ bhyve/console.h 2021-05-03 13:11:57.870288000 +0900
2020 @@ -34,7 +34,7 @@
2121 struct bhyvegc;
2222
@@ -36,8 +36,8 @@ diff -uprN bhyve_orig/console.h bhyve/console.h
3636 void console_ptr_register(ptr_event_func_t event_cb, void *arg, int pri);
3737 void console_ptr_event(uint8_t button, int x, int y);
3838 diff -uprN bhyve_orig/ps2kbd.c bhyve/ps2kbd.c
39---- bhyve_orig/ps2kbd.c 2020-12-24 09:12:34.000000000 +0900
40-+++ bhyve/ps2kbd.c 2020-12-30 21:50:53.386722000 +0900
39+--- bhyve_orig/ps2kbd.c 2021-04-09 09:24:13.000000000 +0900
40++++ bhyve/ps2kbd.c 2021-05-03 13:11:57.870908000 +0900
4141 @@ -181,6 +181,26 @@ static const uint8_t ascii_translations[128] = {
4242 0x22, 0x35, 0x1a, 0x54, 0x5d, 0x5b, 0x0e, 0x00,
4343 };
@@ -129,9 +129,17 @@ diff -uprN bhyve_orig/ps2kbd.c bhyve/ps2kbd.c
129129
130130 if (!fifo_full)
131131 diff -uprN bhyve_orig/rfb.c bhyve/rfb.c
132---- bhyve_orig/rfb.c 2020-12-24 09:12:34.000000000 +0900
133-+++ bhyve/rfb.c 2020-12-31 10:39:54.009578000 +0900
134-@@ -118,7 +118,10 @@ struct rfb_softc {
132+--- bhyve_orig/rfb.c 2021-04-09 09:24:13.000000000 +0900
133++++ bhyve/rfb.c 2021-05-03 13:13:08.713857000 +0900
134+@@ -98,6 +98,7 @@ static int rfb_debug = 0;
135+ #define CS_KEY_EVENT 4
136+ #define CS_POINTER_EVENT 5
137+ #define CS_CUT_TEXT 6
138++#define CS_MSG_CLIENT_QEMU 255
139+
140+ #define SECURITY_TYPE_NONE 1
141+ #define SECURITY_TYPE_VNC_AUTH 2
142+@@ -118,7 +119,10 @@ struct rfb_softc {
135143 bool enc_raw_ok;
136144 bool enc_zlib_ok;
137145 bool enc_resize_ok;
@@ -142,7 +150,7 @@ diff -uprN bhyve_orig/rfb.c bhyve/rfb.c
142150 z_stream zstream;
143151 uint8_t *zbuf;
144152 int zbuflen;
145-@@ -170,7 +173,10 @@ struct rfb_pixfmt_msg {
153+@@ -170,7 +174,10 @@ struct rfb_pixfmt_msg {
146154 #define RFB_ENCODING_RAW 0
147155 #define RFB_ENCODING_ZLIB 6
148156 #define RFB_ENCODING_RESIZE -223
@@ -153,7 +161,7 @@ diff -uprN bhyve_orig/rfb.c bhyve/rfb.c
153161 #define RFB_MAX_WIDTH 2000
154162 #define RFB_MAX_HEIGHT 1200
155163 #define RFB_ZLIB_BUFSZ RFB_MAX_WIDTH*RFB_MAX_HEIGHT*4
156-@@ -197,6 +203,19 @@ struct rfb_key_msg {
164+@@ -197,6 +204,19 @@ struct rfb_key_msg {
157165 uint8_t type;
158166 uint8_t down;
159167 uint16_t pad;
@@ -173,7 +181,7 @@ diff -uprN bhyve_orig/rfb.c bhyve/rfb.c
173181 uint32_t code;
174182 };
175183
176-@@ -277,6 +296,27 @@ rfb_send_resize_update_msg(struct rfb_softc *rc, int c
184+@@ -277,6 +297,27 @@ rfb_send_resize_update_msg(struct rfb_softc *rc, int c
177185 }
178186
179187 static void
@@ -201,7 +209,7 @@ diff -uprN bhyve_orig/rfb.c bhyve/rfb.c
201209 rfb_recv_set_pixfmt_msg(struct rfb_softc *rc, int cfd)
202210 {
203211 struct rfb_pixfmt_msg pixfmt_msg;
204-@@ -309,6 +349,9 @@ rfb_recv_set_encodings_msg(struct rfb_softc *rc, int c
212+@@ -309,6 +350,9 @@ rfb_recv_set_encodings_msg(struct rfb_softc *rc, int c
205213 case RFB_ENCODING_RESIZE:
206214 rc->enc_resize_ok = true;
207215 break;
@@ -211,7 +219,7 @@ diff -uprN bhyve_orig/rfb.c bhyve/rfb.c
211219 }
212220 }
213221 }
214-@@ -686,6 +729,11 @@ rfb_recv_update_msg(struct rfb_softc *rc, int cfd)
222+@@ -686,6 +730,11 @@ rfb_recv_update_msg(struct rfb_softc *rc, int cfd)
215223
216224 (void)stream_read(cfd, ((void *)&updt_msg) + 1 , sizeof(updt_msg) - 1);
217225
@@ -223,7 +231,7 @@ diff -uprN bhyve_orig/rfb.c bhyve/rfb.c
223231 rc->pending = true;
224232 if (!updt_msg.incremental)
225233 rc->update_all = true;
226-@@ -698,11 +746,26 @@ rfb_recv_key_msg(struct rfb_softc *rc, int cfd)
234+@@ -698,11 +747,26 @@ rfb_recv_key_msg(struct rfb_softc *rc, int cfd)
227235
228236 (void)stream_read(cfd, ((void *)&key_msg) + 1, sizeof(key_msg) - 1);
229237
@@ -251,17 +259,17 @@ diff -uprN bhyve_orig/rfb.c bhyve/rfb.c
251259 rfb_recv_ptr_msg(struct rfb_softc *rc, int cfd)
252260 {
253261 struct rfb_ptr_msg ptr_msg;
254-@@ -997,6 +1060,9 @@ report_and_done:
262+@@ -997,6 +1061,9 @@ report_and_done:
255263 case CS_CUT_TEXT:
256264 rfb_recv_cuttext_msg(rc, cfd);
257265 break;
258-+ case 255:
266++ case CS_MSG_CLIENT_QEMU:
259267 + rfb_recv_client_msg(rc, cfd);
260268 + break;
261269 default:
262270 WPRINTF(("rfb unknown cli-code %d!", buf[0] & 0xff));
263271 goto done;
264-@@ -1031,6 +1097,9 @@ rfb_thr(void *arg)
272+@@ -1031,6 +1098,9 @@ rfb_thr(void *arg)
265273 rc->enc_raw_ok = false;
266274 rc->enc_zlib_ok = false;
267275 rc->enc_resize_ok = false;