diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-02-12 09:21:57 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-02-12 09:21:57 +0000 |
commit | d652a9595460cfc81afeb66c17aef7adedfb9175 (patch) | |
tree | bcdfea3dfaa9779c0254ecdb163a1b2ecfd59156 /xen/include/xen/keyhandler.h | |
parent | 98650e12c1241d6a72f6d3e6a4f8d16faaf9f9c5 (diff) | |
download | xen-d652a9595460cfc81afeb66c17aef7adedfb9175.tar.gz xen-d652a9595460cfc81afeb66c17aef7adedfb9175.tar.bz2 xen-d652a9595460cfc81afeb66c17aef7adedfb9175.zip |
keyhandler: Do not serialise keyhandlers; increase scratch array size.
Although serialising keyhandlers is safer, and in particular
protects access to shared heyhandler_scratch[], in debug scenarios it
is probably better to 'have a go' when requested - and assume the user
knows what they are doing.
Meanwhile, increase scratch array size to 1024. That's enough for more
than a dozen lines of 80-column text, and should be plenty in any
practical situation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/xen/keyhandler.h')
-rw-r--r-- | xen/include/xen/keyhandler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/xen/keyhandler.h b/xen/include/xen/keyhandler.h index 1670d7d7f9..d3ab0a90fd 100644 --- a/xen/include/xen/keyhandler.h +++ b/xen/include/xen/keyhandler.h @@ -53,6 +53,6 @@ extern void register_keyhandler(unsigned char key, struct keyhandler *handler); extern void handle_keypress(unsigned char key, struct cpu_user_regs *regs); /* Scratch space is available for use of any keyhandler. */ -extern char keyhandler_scratch[100]; +extern char keyhandler_scratch[1024]; #endif /* __XEN_KEYHANDLER_H__ */ |