Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


OpenBSD attempts to set the keyboard scancode set to 3, which we don't support. Howev...
Erik van der Kouwe [Mon, 29 Nov 2010 21:36:18 +0000 (15:36 -0600)]
palacios/src/devices/keyboard.c

index 5b06858..5eb7d6b 100644 (file)
@@ -876,15 +876,20 @@ static int keyboard_write_output(struct guest_info * core, ushort_t port, void *
                    PrintDebug("Keyboard: scancode set being read\n");
                    push_to_output_queue(kbd, 0x45 - 2 * kbd->scancode_set, COMMAND, KEYBOARD);
                    break;
+               case 1:
+                   PrintError("keyboard: unsupported scancode set %d selected\n", data);
+                   return -1;
                case 2:
                    PrintDebug("Keyboard: scancode set being set to %d\n", data);
                    kbd->scancode_set = data;
                    push_to_output_queue(kbd, 0xfa, COMMAND, KEYBOARD);
                    break;
-               case 1:
                case 3:
-                   PrintError("keyboard: unsupported scancode set %d selected\n", data);
-                   return -1;
+                   /* OpenBSD wants scancode set 3, but falls back to 2 if a
+                    * subsequent read reveals that the request was ignored
+                    */
+                   PrintError("keyboard: ignoring request for scancode set %d\n", data);
+                   break;
                default:
                    PrintError("keyboard: unknown scancode set %d selected\n", data);
                    return -1;