X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fkeyboard.c;h=94cd7f3e26a85bb792170cb6d445dc09cc0e2b3a;hb=ddd9fd13627552b915753b06be997921cc904466;hp=a6ba864002331eea1d115f45f6fc640b6fb171f8;hpb=cfcc5717f659b3ed2954f41cf363d3bceae8dc84;p=palacios.git diff --git a/palacios/src/devices/keyboard.c b/palacios/src/devices/keyboard.c index a6ba864..94cd7f3 100644 --- a/palacios/src/devices/keyboard.c +++ b/palacios/src/devices/keyboard.c @@ -317,6 +317,7 @@ static int pull_from_output_queue(struct vm_device * dev, uint8_t * value) { } +#include static int key_event_handler(struct guest_info * info, @@ -347,11 +348,16 @@ static int key_event_handler(struct guest_info * info, } #endif - else if (evt->scan_code == 0x42) { // F8 Sym test2 + else if (evt->scan_code == 0x42) { // F8 debug toggle extern int v3_dbg_enable; PrintDebug("Toggling Debugging\n"); v3_dbg_enable ^= 1; + } else if (evt->scan_code == 0x41) { // F7 telemetry dump +#ifdef CONFIG_TELEMETRY + v3_print_telemetry(info); +#endif // CONFIG_TELEMTRY + }