Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 398

kvm-83-270.el5_11.src.rpm

From 3ae69d5735fcfc090a97dbbf60cd70ab4cfdc1cf Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <kraxel@redhat.com>
Date: Fri, 12 Mar 2010 12:01:25 -0300
Subject: [PATCH 2/4] kbd leds: ps/2 kbd

RH-Author: Gerd Hoffmann <kraxel@redhat.com>
Message-id: <1268395287-16378-3-git-send-email-kraxel@redhat.com>
Patchwork-id: 7685
O-Subject: [RHEL-5 kvm PATCH 2/4] kbd leds: ps/2 kbd
Bugzilla: 517814
RH-Acked-by: Zachary Amsden <zamsden@redhat.com>
RH-Acked-by: Juan Quintela <quintela@redhat.com>
RH-Acked-by: Markus Armbruster <armbru@redhat.com>

Add led status notification support to the ps/2 kbd driver.

upstream: commit 6937b3766fb47b87a986e7c8010546465de87a4c
---
 qemu/hw/ps2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/hw/ps2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/qemu/hw/ps2.c b/qemu/hw/ps2.c
index de31883..841f816 100644
--- a/qemu/hw/ps2.c
+++ b/qemu/hw/ps2.c
@@ -280,6 +280,7 @@ static void ps2_reset_keyboard(PS2KbdState *s)
     s->scan_enabled = 1;
     s->scancode_set = 2;
     ps2_set_keyboard_leds(s, 0);
+    kbd_put_ledstate(0);
 }
 
 void ps2_write_keyboard(void *opaque, int val)
@@ -355,6 +356,7 @@ void ps2_write_keyboard(void *opaque, int val)
         break;
     case KBD_CMD_SET_LEDS:
         ps2_set_keyboard_leds(s, val);
+        kbd_put_ledstate(val);
         ps2_queue(&s->common, KBD_REPLY_ACK);
         s->common.write_cmd = -1;
         break;
-- 
1.7.0.3