Skip to contentSkip to conversation

baum braille device update

GIT PULL Samuel Thibault 3 participants 6 messages Dec 4, 2017

lore
Share & tools
lore
#0 lore raw

warning: redirection vers https://people.debian.org/~sthibault/qemu.git/
The following changes since commit 7edaf99759017d3e175e37cffc3536e86a3bd380:

Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging (2017-11-13 13:54:59 +0000)

are available in the Git repository at:

http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault

for you to fetch changes up to 15405525fce773d43e7e5cabc2b9ac4b9d4d7672:

baum: Truncate braille device size to 84x1 (2017-12-03 19:35:50 +0100)

----------------------------------------------------------------
baum updates

----------------------------------------------------------------
Samuel Thibault (1):
baum: Truncate braille device size to 84x1

 chardev/baum.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
#1 lore raw

[Qemu-devel] [PULL 1/1] baum: Truncate braille device size to 84x1

Baum device bigger than 84 do not actually exist, some guest drivers would be upset by such sizes.

---
 chardev/baum.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
chardev/baum.c +7 -1
index 67fd783a59..78b0c87625 100644
@@ -1,7 +1,7 @@
 /*
  * QEMU Baum Braille Device
  *
- * Copyright (c) 2008, 2010-2011, 2016 Samuel Thibault
+ * Copyright (c) 2008, 2010-2011, 2016-2017 Samuel Thibault
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -239,6 +239,12 @@ static int baum_deferred_init(BaumChardev *baum)
         brlapi_perror("baum: brlapi__getDisplaySize");
         return 0;
     }
+    if (baum->y > 1) {
+        baum->y = 1;
+    }
+    if (baum->x > 84) {
+        baum->x = 84;
+    }
 
     con = qemu_console_lookup_by_index(0);
     if (con && qemu_console_is_graphic(con)) {
Signature · 1 line
2.15.0
#2 lore raw
In reply to Samuel Thibault
Quoted 11 lines · Samuel Thibault

warning: redirection vers https://people.debian.org/~sthibault/qemu.git/
The following changes since commit 7edaf99759017d3e175e37cffc3536e86a3bd380:

Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging (2017-11-13 13:54:59 +0000)

are available in the Git repository at:

http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault

for you to fetch changes up to 15405525fce773d43e7e5cabc2b9ac4b9d4d7672:

Quoted 8 lines

baum: Truncate braille device size to 84x1 (2017-12-03 19:35:50 +0100)

----------------------------------------------------------------
baum updates

----------------------------------------------------------------
Samuel Thibault (1):
baum: Truncate braille device size to 84x1

Hi. Is this pull request intended for 2.11? We're currently in freeze for that and only taking "absolutely release critical" bug fixes...

thanks
-- PMM

#3 lore raw

Hello,

Quoted 15 lines · Peter Maydell, on lun. 04 déc. 2017 15:21:48 +0000, wrote:
Quoted 13 lines · Samuel Thibault

warning: redirection vers https://people.debian.org/~sthibault/qemu.git/
The following changes since commit 7edaf99759017d3e175e37cffc3536e86a3bd380:

Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging (2017-11-13 13:54:59 +0000)

are available in the Git repository at:

http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault

for you to fetch changes up to 15405525fce773d43e7e5cabc2b9ac4b9d4d7672:

baum: Truncate braille device size to 84x1 (2017-12-03 19:35:50 +0100)

Quoted 8 lines
Quoted 6 lines

----------------------------------------------------------------
baum updates

----------------------------------------------------------------
Samuel Thibault (1):
baum: Truncate braille device size to 84x1

Hi. Is this pull request intended for 2.11?

If possible, yes.

Quoted 2 lines

We're currently in freeze for that and only taking "absolutely release critical" bug fixes...

Ok, as you wish.

It's a relatively corner case: a friend of mine does have a 88-cell braille display, and can not use it with guests by running qemu -usbdevice braille due to this bug.

Samuel

#4 lore raw
Quoted 13 lines · Samuel Thibault

Hello,

Quoted 7 lines · Peter Maydell, on lun. 04 déc. 2017 15:21:48 +0000, wrote:
Quoted 3 lines · Samuel Thibault

----------------------------------------------------------------
Samuel Thibault (1):
baum: Truncate braille device size to 84x1

Hi. Is this pull request intended for 2.11?

If possible, yes.

Quoted 8 lines
Quoted 2 lines

We're currently in freeze for that and only taking "absolutely release critical" bug fixes...

Ok, as you wish.

It's a relatively corner case: a friend of mine does have a 88-cell braille display, and can not use it with guests by running qemu -usbdevice braille due to this bug.

Mmm. Looking at the code for baum.c for 2.10, this isn't a regression from 2.10 or a security issue, which is what it would need to be for us to want to put this in at this point.

Also, looking in my mail archives I couldn't find where this patch was initially posted on the list for review. Our process is that all patches have to be posted for review first, they can't just go straight into a pull request.

thanks
-- PMM

#5 lore raw
Quoted 17 lines · Peter Maydell, on lun. 04 déc. 2017 15:36:32 +0000, wrote:
Quoted 16 lines · Samuel Thibault
Quoted 7 lines · Peter Maydell, on lun. 04 déc. 2017 15:21:48 +0000, wrote:
Quoted 3 lines · Samuel Thibault

----------------------------------------------------------------
Samuel Thibault (1):
baum: Truncate braille device size to 84x1

Hi. Is this pull request intended for 2.11?

If possible, yes.

Quoted 2 lines

We're currently in freeze for that and only taking "absolutely release critical" bug fixes...

Ok, as you wish.

Quoted 7 lines
Quoted 3 lines

It's a relatively corner case: a friend of mine does have a 88-cell braille display, and can not use it with guests by running qemu -usbdevice braille due to this bug.

Mmm. Looking at the code for baum.c for 2.10, this isn't a regression from 2.10 or a security issue, which is what it would need to be for us to want to put this in at this point.

Ah, ok, nevermind then, it'll have to wait.

Sorry I didn't know that.

Samuel