Re: [Qemu-devel] [PATCH v2] monitor: allow object_del & device_del to accept QOM paths

2015-08-27 Thread Programmingkid
On Aug 27, 2015, at 12:13 PM, Daniel P. Berrange wrote: > Currently both object_del and device_del require that the > client provide the object/device short ID. While user > creatable objects require an ID to be provided at time of > creation, qdev devices may be created without giving an > ID. T

Re: [Qemu-devel] Should we auto-generate IDs?

2015-08-27 Thread Programmingkid
On Aug 27, 2015, at 12:22 PM, Daniel P. Berrange wrote: > On Thu, Aug 27, 2015 at 12:08:25PM -0400, Programmingkid wrote: >> >> On Aug 27, 2015, at 12:02 PM, Daniel P. Berrange wrote: >> >>> On Thu, Aug 27, 2015 at 11:58:22AM -0400, Programmingkid wrote: >>&

[Qemu-devel] [PATCH v2] qdev-monitor.c: Add device id generation

2015-08-27 Thread Programmingkid
Add device ID generation to each device if an ID isn't given. An auto-generated ID will begin with an underscore character. This will distinguish it from user-made ID's. An user-made ID cannot begin with an underscore, so there is no problem of collisions with auto-generated ID's. A management

Re: [Qemu-devel] [PATCH] hw/usb/bus.c: print device ID when 'info usb' used

2015-08-28 Thread Programmingkid
On Aug 28, 2015, at 7:50 AM, Gerd Hoffmann wrote: > On Mo, 2015-08-24 at 15:13 -0400, Programmingkid wrote: >> +monitor_printf(mon, " Device %d.%d, Port %s, Speed %s >> Mb/s," >> +"Product %s, ID %s\n", >&

Re: [Qemu-devel] [PATCH] hw/usb/bus.c: print device ID when 'info usb' used

2015-08-28 Thread Programmingkid
On Aug 28, 2015, at 9:35 AM, Daniel P. Berrange wrote: > On Fri, Aug 28, 2015 at 09:08:12AM -0400, Programmingkid wrote: >> >> On Aug 28, 2015, at 7:50 AM, Gerd Hoffmann wrote: >> >>> On Mo, 2015-08-24 at 15:13 -0400, Programmingkid wrote: >>>> +

Re: [Qemu-devel] [PATCH] hw/usb/bus.c: print device ID when 'info usb' used

2015-08-28 Thread Programmingkid
On Aug 28, 2015, at 9:50 AM, Gerd Hoffmann wrote: > On Fr, 2015-08-28 at 09:39 -0400, Programmingkid wrote: >> On Aug 28, 2015, at 9:35 AM, Daniel P. Berrange wrote: >> >>> On Fri, Aug 28, 2015 at 09:08:12AM -0400, Programmingkid wrote: >>>> >>>

Re: [Qemu-devel] [PATCH] hw/usb/bus.c: print device ID when 'info usb' used

2015-08-28 Thread Programmingkid
On Aug 28, 2015, at 12:07 PM, Peter Maydell wrote: > On 28 August 2015 at 14:55, Programmingkid wrote: >> On Aug 28, 2015, at 9:50 AM, Gerd Hoffmann wrote: >>> Even better: Don't print "ID: ..." in the first place in case it is not >>> present. >&g

[Qemu-devel] [PATCH v2] hw/usb/bus.c: print device ID when 'info usb' used

2015-08-28 Thread Programmingkid
Print the ID (if available) of each device when 'info usb' is used in the monitor. Signed-off-by: John Arbuckle --- Added conditional code that only prints the ID if it is available. hw/usb/bus.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/hw/usb/bus

Re: [Qemu-devel] Mount image file feature

2015-08-29 Thread Programmingkid
On Aug 29, 2015, at 11:40 AM, Max Reitz wrote: > On 27.08.2015 03:05, G 3 wrote: >> I want to share files between my host and guest computer. A feature I >> want to add would be a new menu item in the Machine menu called "Mount >> Image File...". When the user selects it, a file open dialog box >

Re: [Qemu-devel] Mount image file feature

2015-08-29 Thread Programmingkid
On Aug 29, 2015, at 3:34 PM, Max Reitz wrote: > On 29.08.2015 20:34, MagicCat Software wrote: >> >> On Aug 29, 2015, at 2:01 PM, Max Reitz wrote: >> >>> On 29.08.2015 19:36, Programmingkid wrote: >>>> >>>> On Aug 29, 2015, at 12:39 PM, Ma

Re: [Qemu-devel] Mount image file feature

2015-08-29 Thread Programmingkid
On Aug 29, 2015, at 3:52 PM, Max Reitz wrote: > On 29.08.2015 20:34, MagicCat Software wrote: >> >> On Aug 29, 2015, at 2:01 PM, Max Reitz wrote: > > [snip] > >>> User-friendliness is always expensive, >>> difficult to maintain, and a neverending source of complaints. >> >> Really? It has bee

Re: [Qemu-devel] Mount image file feature

2015-08-29 Thread Programmingkid
On Aug 29, 2015, at 12:39 PM, Max Reitz wrote: > On 29.08.2015 17:57, Programmingkid wrote: >> >> On Aug 29, 2015, at 11:40 AM, Max Reitz wrote: >> >>> On 27.08.2015 03:05, G 3 wrote: >>>> I want to share files between my host and guest computer. A

Re: [Qemu-devel] Mount image file feature

2015-08-29 Thread Programmingkid
On Aug 29, 2015, at 7:12 PM, Eric Blake wrote: > On 08/29/2015 02:18 PM, Programmingkid wrote: > >>> >>> (1) 'change' always uses 'raw' as the format, but the selector >>> apparently offers you the full range of image formats >>> (

Re: [Qemu-devel] Mount image file feature

2015-08-29 Thread Programmingkid
On Aug 29, 2015, at 7:10 PM, Eric Blake wrote: > On 08/29/2015 01:34 PM, Max Reitz wrote: > Erm, well, I think I won't reply to that other than *cough* virt-manager *cough*. >>> >>> Linux exclusive probably. >> >> Your point? >> >> You said applications on Linux are generally more d

[Qemu-devel] Help with USB packet transmission rate

2015-08-30 Thread Programmingkid
The USB Start of Frame packet is sent 1000 times a second from the host to a USB device. This packet is used to synchronize audio data being sent to a USB sound card. On my system the Start of Frame packet is only sent about 830 times a second. This makes audio that is played thru the USB sound

Re: [Qemu-devel] Mount image file feature

2015-08-30 Thread Programmingkid
On Aug 30, 2015, at 2:47 AM, Paolo Bonzini wrote: > > > On 29/08/2015 19:36, Programmingkid wrote: >>>> Mac OS X is a second-class citizen in the QEMU world... >>> >>> Might have to do something with most (?) of it being non-free and Apple >>>

Re: [Qemu-devel] Mount image file feature

2015-08-31 Thread Programmingkid
On Aug 31, 2015, at 3:52 AM, Markus Armbruster wrote: > Programmingkid writes: > >> On Aug 29, 2015, at 12:39 PM, Max Reitz wrote: >> >>> On 29.08.2015 17:57, Programmingkid wrote: >>>> >>>> On Aug 29, 2015, at 11:40 AM, Max Reitz wrote: &

Re: [Qemu-devel] Mount image file feature

2015-08-31 Thread Programmingkid
On Aug 31, 2015, at 12:26 PM, Markus Armbruster wrote: > Programmingkid writes: > >> On Aug 31, 2015, at 3:52 AM, Markus Armbruster wrote: >> >>> Programmingkid writes: >>> >>>> On Aug 29, 2015, at 12:39 PM, Max Reitz wrote: >&

Re: [Qemu-devel] Mount image file feature

2015-08-31 Thread Programmingkid
On Aug 29, 2015, at 12:39 PM, Max Reitz wrote: > On 29.08.2015 17:57, Programmingkid wrote: >> >> On Aug 29, 2015, at 11:40 AM, Max Reitz wrote: >> >>> On 27.08.2015 03:05, G 3 wrote: >>>> I want to share files between my host and guest computer. A

Re: [Qemu-devel] Mount image file feature

2015-08-31 Thread Programmingkid
On Aug 31, 2015, at 4:26 PM, Max Reitz wrote: > On 31.08.2015 22:13, Programmingkid wrote: >> >> On Aug 29, 2015, at 12:39 PM, Max Reitz wrote: >> >>> On 29.08.2015 17:57, Programmingkid wrote: >>>> >>>> On Aug 29, 2015, at 11:40 AM, Max R

[Qemu-devel] function to execute qmp commands

2015-08-31 Thread Programmingkid
Is there a function that can execute a qmp command in QEMU?

Re: [Qemu-devel] function to execute qmp commands

2015-09-01 Thread Programmingkid
On Sep 1, 2015, at 2:19 AM, Markus Armbruster wrote: > Programmingkid writes: > >> Is there a function that can execute a qmp command in QEMU? > > Sure you want to do that, and not call the C interface instead? Let me > explain how QMP works: > > * QMP core

Re: [Qemu-devel] Should we auto-generate IDs?

2015-09-01 Thread Programmingkid
On Sep 1, 2015, at 8:34 AM, Kevin Wolf wrote: > Am 27.08.2015 um 14:32 hat Jeff Cody geschrieben: >> I'm not married to the ID generation scheme I proposed. >> >> What I am trying to do, however, is have a technical discussion on >> generating an ID in a well-formed manner. And hopefully, in

Re: [Qemu-devel] Should we auto-generate IDs?

2015-09-01 Thread Programmingkid
On Sep 1, 2015, at 10:43 AM, Kevin Wolf wrote: > Am 01.09.2015 um 16:18 hat Programmingkid geschrieben: >> >> On Sep 1, 2015, at 8:34 AM, Kevin Wolf wrote: >> >>> Am 27.08.2015 um 14:32 hat Jeff Cody geschrieben: >>>> I'm not married to the ID ge

Re: [Qemu-devel] [PATCH v3] monitor: allow object_del & device_del to accept QOM paths

2015-09-01 Thread Programmingkid
On Sep 1, 2015, at 11:55 AM, Eric Blake wrote: > On 09/01/2015 07:23 AM, Daniel P. Berrange wrote: > +Remove device @var{id}. @var{id} may be a short ID +or a QOM object path. >>> >>> Have you considered using two alternative parameters, id and qom-path? >>> (qom_path was used elsewhe

[Qemu-devel] [PATCH] ui/cocoa.m: Add Mount image file menu item

2015-09-01 Thread Programmingkid
Add "Mount Image File..." and a "Eject Image File" menu items to cocoa interface. This patch makes sharing files between the host and the guest user-friendly. The "Mount Image File..." menu item displays a dialog box having the user pick an image file to use in QEMU. The image file is setup as a U

Re: [Qemu-devel] Mount image file feature

2015-09-02 Thread Programmingkid
On Sep 2, 2015, at 10:31 AM, Max Reitz wrote: > On 31.08.2015 22:33, Programmingkid wrote: >> >> On Aug 31, 2015, at 4:26 PM, Max Reitz wrote: > > [snip] > >>> The following works for me: >>> >>> $ echo foo > bar >>> $ x86

[Qemu-devel] [PATCH] raw-posix.c: Make physical devices usable in QEMU

2015-07-07 Thread Programmingkid
Make physical devices like a USB flash drive or a CDROM drive work in QEMU. With this patch I can use a USB flash drive like a hard drive. Before this patch, QEMU would just quit with a message like "resource busy". Now it handles issues like these for the user. This patch unmounts volumes of phys

Re: [Qemu-devel] [PATCH] raw-posix.c: remove raw device access for cdrom

2015-07-08 Thread Programmingkid
On Jul 8, 2015, at 7:01 AM, Kevin Wolf wrote: > Am 08.07.2015 um 12:47 hat Laurent Vivier geschrieben: >> >> >> On 08/07/2015 12:31, Kevin Wolf wrote: >>> Am 02.07.2015 um 16:18 hat Laurent Vivier geschrieben: On 02/07/2015 16:03, Paolo Bonzini wrote: > > > On 02/

Re: [Qemu-devel] [PATCH] raw-posix.c: remove raw device access for cdrom

2015-07-08 Thread Programmingkid
On Jul 8, 2015, at 9:11 AM, Kevin Wolf wrote: > Am 08.07.2015 um 14:56 hat Programmingkid geschrieben: >> >> On Jul 8, 2015, at 7:01 AM, Kevin Wolf wrote: >> >>> Am 08.07.2015 um 12:47 hat Laurent Vivier geschrieben: >>>> >>>> >>&

Re: [Qemu-devel] [Qemu-block] [PATCH] raw-posix.c: Make physical devices usable in QEMU

2015-07-09 Thread Programmingkid
On Jul 9, 2015, at 6:52 AM, Stefan Hajnoczi wrote: > On Tue, Jul 07, 2015 at 01:33:23PM -0400, Programmingkid wrote: >> Make physical devices like a USB flash drive or a CDROM drive work in QEMU. >> With >> this patch I can use a USB flash drive like a hard drive. Before

Re: [Qemu-devel] [PATCH] raw-posix.c: Make physical devices usable in QEMU

2015-07-09 Thread Programmingkid
On Jul 9, 2015, at 5:35 AM, Laurent Vivier wrote: > > > On 07/07/2015 19:33, Programmingkid wrote: >> Make physical devices like a USB flash drive or a CDROM drive work in >> QEMU. With >> this patch I can use a USB flash drive like a hard drive. Before this >>

Re: [Qemu-devel] [Qemu-block] [PATCH] raw-posix.c: Make physical devices usable in QEMU

2015-07-16 Thread Programmingkid
On Jul 16, 2015, at 9:19 AM, Stefan Hajnoczi wrote: > On Thu, Jul 09, 2015 at 10:02:26AM -0400, Programmingkid wrote: >> >> On Jul 9, 2015, at 6:52 AM, Stefan Hajnoczi wrote: >> >>> On Tue, Jul 07, 2015 at 01:33:23PM -0400, Programmingkid wrote: >>>&

Re: [Qemu-devel] [Qemu-block] [PATCH] raw-posix.c: Make physical devices usable in QEMU

2015-07-16 Thread Programmingkid
On Jul 16, 2015, at 3:43 PM, Stefan Hajnoczi wrote: > On Thu, Jul 16, 2015 at 6:26 PM, Programmingkid > wrote: >> >> On Jul 16, 2015, at 9:19 AM, Stefan Hajnoczi wrote: >> >>> On Thu, Jul 09, 2015 at 10:02:26AM -0400, Programmingkid wrote: >>>

[Qemu-devel] [PATCH v2] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-07-16 Thread Programmingkid
Mac OS X can be picky when it comes to allowing the user to use physical devices in QEMU. This patch fixes that issue by testing each physical device first before using it in QEMU. If an issue is detected, a message is displayed showing the user how to unmount a volume. Signed-off-by: John Arbuck

Re: [Qemu-devel] [PATCH v2] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-07-17 Thread Programmingkid
On Jul 17, 2015, at 9:41 AM, Stefan Hajnoczi wrote: > On Thu, Jul 16, 2015 at 04:46:07PM -0400, Programmingkid wrote: >> @@ -2014,7 +2015,9 @@ kern_return_t GetBSDPath( io_iterator_t mediaIterator, >> char *bsdPath, CFIndex ma >> if ( bsdPathAsCFString ) {

[Qemu-devel] [PATCH v3] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-07-17 Thread Programmingkid
Mac OS X can be picky when it comes to allowing the user to use physical devices in QEMU. Most mounted volumes appear to be off limits to QEMU. If an issue is detected, a message is displayed showing the user how to unmount a volume. Signed-off-by: John Arbuckle --- Replaced strncpy with pstrcp

Re: [Qemu-devel] [PATCH v2] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-07-20 Thread Programmingkid
On Jul 20, 2015, at 8:46 AM, Laurent Vivier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > On 20/07/2015 12:48, Stefan Hajnoczi wrote: >> On Fri, Jul 17, 2015 at 03:24:34PM -0400, Programmingkid wrote: >>> >>> On Jul 17, 2015, at 9:

Re: [Qemu-devel] [PATCH 0/5] PPC: Mac99 emulation fixes

2014-07-13 Thread Programmingkid
On Jul 13, 2014, at 12:17 PM, Alexander Graf wrote: > While trying to get Mac OS X booting with our -M mac99 emulation I stumbled > over a few issues that prevented it from doing so. > > With these patches applied I still can't properly boot Mac OS X with -M mac99, > but I get a lot further than

Re: [Qemu-devel] Bug report - Windows XP guest failure

2015-06-14 Thread Programmingkid
On Jun 14, 2015, at 5:55 AM, Mark Cave-Ayland wrote: > On 13/05/15 10:01, Paolo Bonzini wrote: > >> On 12/05/2015 09:22, Michael Tokarev wrote: >>> 12.05.2015 04:05, Peter Crosthwaite wrote: On Thu, May 7, 2015 at 2:34 AM, Michael Tokarev wrote: >>> ... >> Ok, I can reproduce this, win

Re: [Qemu-devel] [PATCH v2] ui/cocoa.m: Adds device menu items to Machine menu

2015-06-14 Thread Programmingkid
On Jun 14, 2015, at 1:11 PM, Peter Maydell wrote: > On 18 May 2015 at 17:23, Programmingkid wrote: >> Adds all removable devices to the Machine menu as a Change and Eject menu >> item pair. ide-cd0 would have a "Change ide-cd0..." and "Eject ide-cd0" >&g

[Qemu-devel] [PATCH v3] cocoa.m: machine menu device menu items

2015-06-14 Thread Programmingkid
Adds all removable devices to the Machine menu as a Change and Eject menu item pair. ide-cd0 would have a "Change ide-cd0..." and "Eject ide-cd0" menu items. Signed-off-by: John Arbuckle --- Removed depreciated code from QEMU_Alert(). Unified supported image file extensions into one array. Repla

[Qemu-devel] Serial Console bug

2015-06-19 Thread Programmingkid
I have noticed a bug with the serial console. If text is printed to it that is longer than the window size, the text is cut off instead of being wrapped around. I have noticed this issue on QEMU 2.3.50 (just git pull'ed today). My host operating system is Mac OS 10.6.8. Has anyone noticed this i

[Qemu-devel] [PATCH] block.c: fix real cdrom detection

2015-06-23 Thread Programmingkid
Fix real cdrom detection so that a real cdrom can actually be used. signed-off-by: John Arbuckle This patch has been tested on Mac OS X host and guest. Command used: qemu-system-ppc -cdrom /dev/cdrom Note: I was able to view the files using OpenBIOS, but not on Mac OS X. The size of the disc

Re: [Qemu-devel] [PATCH] block.c: fix real cdrom detection

2015-06-23 Thread Programmingkid
On Jun 23, 2015, at 2:06 PM, John Snow wrote: > > > On 06/23/2015 01:56 PM, Programmingkid wrote: >> Fix real cdrom detection so that a real cdrom can actually be used. >> >> signed-off-by: John Arbuckle > <mailto:programmingk...@gmail.com>> >> &

Re: [Qemu-devel] [PATCH] qapi-schema.json: Add kp_equals and power keys

2016-03-01 Thread Programmingkid
On Mar 1, 2016, at 5:23 PM, Gerd Hoffmann wrote: > On Di, 2016-03-01 at 17:04 -0500, Programmingkid wrote: >> Add kp_equals and power keys support to the QKeyCode enum of keys. > > Please update the documentation in the comment too, so we keep track of > which keys where adde

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Replace pc/xt keyboard keycode array with QKeyCode

2016-03-01 Thread Programmingkid
On Mar 1, 2016, at 6:16 PM, Eric Blake wrote: > On 03/01/2016 03:12 PM, Programmingkid wrote: >> The old pc/xt keyboard keycode array is replaced with QEMU's own QKeyCode >> layout. >> >> Signed-off-by: John Arbuckle >> >> --- >> Maintainer

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Replace pc/xt keyboard keycode array with QKeyCode

2016-03-01 Thread Programmingkid
On Mar 1, 2016, at 6:18 PM, Peter Maydell wrote: > On 1 March 2016 at 22:12, Programmingkid wrote: >> The old pc/xt keyboard keycode array is replaced with QEMU's own QKeyCode >> layout. >> >> Signed-off-by: John Arbuckle >> >> --- >> Mai

Re: [Qemu-devel] [PATCH] hw/input/adb.c: Replace pc_to_adb_keycode with more detailed array

2016-03-01 Thread Programmingkid
On Mar 1, 2016, at 6:34 PM, Peter Maydell wrote: > On 1 March 2016 at 22:10, Programmingkid wrote: >> The pc_to_adb_keycode array was not very easy to work with. The replacement >> array number_to_adb_keycode list all the element indexes on the left and its >> value on

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Replace pc/xt keyboard keycode array with QKeyCode

2016-03-01 Thread Programmingkid
On Mar 1, 2016, at 7:25 PM, Eric Blake wrote: > On 03/01/2016 05:12 PM, Programmingkid wrote: > >>> >>>> + >>>> +[MAC_KEY_ESC] = Q_KEY_CODE_ESC, >>>> +//[MAC_KEY_F1] = Q_KEY_CODE_POWER, // Just in case you need the power >>&g

[Qemu-devel] [PATCH v2] qapi-schema.json: Add kp_equals and power keys

2016-03-01 Thread Programmingkid
Add kp_equals and power keys support to the QKeyCode enum of keys. Signed-off-by: John Arbuckle --- Added comment about kp_equals and power keys. qapi-schema.json |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 8d04897..5cf34

[Qemu-devel] [PATCH v2] MacKeys.h: initial commit

2016-03-01 Thread Programmingkid
This patch adds the file MacKeys.h. It is a file that contains all the constants for the Macintosh keyboard keycodes. Signed-off-by: John Arbuckle --- Added standard license. Added #ifndef #define #endif macros. include/hw/input/MacKeys.h | 168 1

Re: [Qemu-devel] ping [PATCH v14] block/raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2016-03-01 Thread Programmingkid
On Mar 1, 2016, at 10:16 AM, Kevin Wolf wrote: > Am 29.02.2016 um 16:17 hat Programmingkid geschrieben: >> I do think this patch is ready to be added to QEMU. I have listened to what >> you said and implemented your changes. >> >> https://patchwork.ozlabs.org/patch/

Re: [Qemu-devel] [PATCH v2] MacKeys.h: initial commit

2016-03-02 Thread Programmingkid
On Mar 2, 2016, at 4:32 AM, Markus Armbruster wrote: > Programmingkid writes: > >> This patch adds the file MacKeys.h. It is a file that contains all the >> constants >> for the Macintosh keyboard keycodes. >> >> Signed-off-by: John Arbuckle >>

Re: [Qemu-devel] [PATCH] hw/input/adb.c: Replace pc_to_adb_keycode with more detailed array

2016-03-02 Thread Programmingkid
On Mar 2, 2016, at 7:38 AM, Peter Maydell wrote: > On 2 March 2016 at 00:31, Programmingkid wrote: >> >> On Mar 1, 2016, at 6:34 PM, Peter Maydell wrote: >> >>> On 1 March 2016 at 22:10, Programmingkid wrote: >>>> The pc_to_adb_keycode array was n

[Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys

2016-03-02 Thread Programmingkid
Add the keypad equals and power keys to the qcode_to_number array. These keys are used on a Macintosh keyboard. Signed-off-by: John Arbuckle --- ui/input-keymap.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ui/input-keymap.c b/ui/input-keymap.c index fd2c09d..8cff

Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys

2016-03-02 Thread Programmingkid
On Mar 2, 2016, at 11:15 AM, Eric Blake wrote: > On 03/02/2016 08:52 AM, Programmingkid wrote: >> Add the keypad equals and power keys to the qcode_to_number array. These keys >> are used on a Macintosh keyboard. >> >> Signed-off-by: John Arbuckle >> &

Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys

2016-03-02 Thread Programmingkid
On Mar 2, 2016, at 11:12 AM, Gerd Hoffmann wrote: > On Mi, 2016-03-02 at 10:52 -0500, Programmingkid wrote: >> Add the keypad equals and power keys to the qcode_to_number array. These keys >> are used on a Macintosh keyboard. >> >> Signed-off-by: John Arbuckle >

Re: [Qemu-devel] ping [PATCH v14] block/raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2016-03-02 Thread Programmingkid
On Mar 2, 2016, at 4:02 AM, Kevin Wolf wrote: > Am 02.03.2016 um 04:32 hat Programmingkid geschrieben: >> >> On Mar 1, 2016, at 10:16 AM, Kevin Wolf wrote: >> >>> Am 29.02.2016 um 16:17 hat Programmingkid geschrieben: >>>> I do think this patch is rea

Re: [Qemu-devel] [PATCH v2] MacKeys.h: initial commit

2016-03-02 Thread Programmingkid
On Mar 2, 2016, at 11:45 AM, Peter Maydell wrote: > On 2 March 2016 at 15:55, Markus Armbruster wrote: >> I'd call it mac-keys.h. mackeys.h would be okay. There's enough >> precedence for '_' in file names to justify mac_keys.h, but I personally >> dislike that. > > Calling it adb-keys.h woul

Re: [Qemu-devel] [PATCH v2] MacKeys.h: initial commit

2016-03-02 Thread Programmingkid
On Mar 2, 2016, at 11:45 AM, Peter Maydell wrote: > On 2 March 2016 at 15:55, Markus Armbruster wrote: >> I'd call it mac-keys.h. mackeys.h would be okay. There's enough >> precedence for '_' in file names to justify mac_keys.h, but I personally >> dislike that. > > Calling it adb-keys.h woul

[Qemu-devel] [PATCH v15] block/raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2016-03-02 Thread Programmingkid
Mac OS X can be picky when it comes to allowing the user to use physical devices in QEMU. Most mounted volumes appear to be off limits to QEMU. If an issue is detected, a message is displayed showing the user how to unmount a volume. Now QEMU uses both CD and DVD media. Signed-off-by: John Arbuckl

[Qemu-devel] [PATCH v2] ui/cocoa.m: Replace pc/xt keyboard keycode array with QKeyCode

2016-03-02 Thread Programmingkid
The old pc/xt keyboard keycode array is replaced with QEMU's own QKeyCode layout. Signed-off-by: John Arbuckle --- Removed dependency on MacKeys.h. Included Carbon.h. Replaced MacKeys' constants with Carbon's constants. Replaced numbers in handleEvent: with QKeyCode constants. Maintainer note:

[Qemu-devel] [PATCH] ui/cocoa.m: Allow console selection using keypad number keys

2016-03-02 Thread Programmingkid
This patch allows for the user to use the keypad number keys to select a console. Signed-off-by: John Arbuckle --- This patch depends on this patch: http://patchwork.ozlabs.org/patch/591221/ ui/cocoa.m | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ui/cocoa.m b

Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys

2016-03-03 Thread Programmingkid
On Mar 3, 2016, at 5:01 AM, Gerd Hoffmann wrote: > On Mi, 2016-03-02 at 11:29 -0500, Programmingkid wrote: >> On Mar 2, 2016, at 11:12 AM, Gerd Hoffmann wrote: >> >>> On Mi, 2016-03-02 at 10:52 -0500, Programmingkid wrote: >>>> Add the keypad equals and pow

Re: [Qemu-devel] [PATCH v2] ui/cocoa.m: Replace pc/xt keyboard keycode array with QKeyCode

2016-03-03 Thread Programmingkid
On Mar 3, 2016, at 3:43 AM, Peter Maydell wrote: > On 3 March 2016 at 03:23, Programmingkid wrote: >> *Sorry but git send-email refuses to work on my system. > > If you tell us in what way it doesn't work we might be able to > help you debug/configure it. Also, even if y

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Allow console selection using keypad number keys

2016-03-03 Thread Programmingkid
On Mar 3, 2016, at 11:26 AM, Eric Blake wrote: > On 03/02/2016 08:34 PM, Programmingkid wrote: >> This patch allows for the user to use the keypad number keys to select a >> console. >> >> Signed-off-by: John Arbuckle >> >> --- >> This patch depen

Re: [Qemu-devel] [PATCH v2] ui/cocoa.m: Replace pc/xt keyboard keycode array with QKeyCode

2016-03-03 Thread Programmingkid
On Mar 3, 2016, at 10:37 AM, Peter Maydell wrote: > On 3 March 2016 at 15:22, Programmingkid wrote: >> >> On Mar 3, 2016, at 3:43 AM, Peter Maydell wrote: >> >>> On 3 March 2016 at 03:23, Programmingkid wrote: >>>> *Sorry but git send-email refuses

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Allow console selection using keypad number keys

2016-03-03 Thread Programmingkid
On Mar 3, 2016, at 11:49 AM, Eric Blake wrote: > On 03/03/2016 09:32 AM, Programmingkid wrote: >>> I know you've expressed frustrations that you don't have 'git >>> send-email' configured correctly; have you tried trouble-shooting it on >>> IRC

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Allow console selection using keypad number keys

2016-03-03 Thread Programmingkid
On Mar 3, 2016, at 11:53 AM, Peter Maydell wrote: > On 3 March 2016 at 03:34, Programmingkid wrote: >> This patch allows for the user to use the keypad number keys to select a >> console. >> >> Signed-off-by: John Arbuckle >> >> --- &g

Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys

2016-03-03 Thread Programmingkid
On Mar 3, 2016, at 10:49 AM, Gerd Hoffmann wrote: > Hi, > >>> number is modeled after pc scancodes, so you can't just pick random >>> numbers. >> >> Really? I thought the only requirement was each scancode had to be unique. > > No, it's not. ps2 emulation assumes those codes are the real on

[Qemu-devel] [PATCH v3 0/4] Implement some QKeyCode support

2016-03-04 Thread Programmingkid
This patchset adds QKeyCode support the adb and cocoa code. Note: you do not need to be on a Mac to test out the adb.c, qapi-schema.json, and adb-keys.h files. Only the cocoa.m file changes are Mac specific. If you are using Linux, then the xev command is what you could use to test out these pa

[Qemu-devel] [PATCH v3 1/4] adb-keys.h: initial commit

2016-03-04 Thread Programmingkid
This commit implements the adb-keys.h file. It holds information on adb keycode values. Signed-off-by: John Arbuckle --- Changed name of file from MacKeys.h to adb-keys.h. Changed name of constants from MAC_KEYS_ to ADB_KEYS_. include/hw/input/adb-keys.h | 160 +

[Qemu-devel] [PATCH v3 2/4] qapi-schema.json: Add power and keypad equal keys

2016-03-04 Thread Programmingkid
Add the power and keypad equal keys. These keys are found on a real Macintosh keyboard. Signed-off-by: John Arbuckle --- qapi-schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 8d04897..5cf34bf 100644 --- a/qapi-schema.json

[Qemu-devel] [PATCH v3 3/4] hw/input/adb.c: implement QKeyCode support

2016-03-04 Thread Programmingkid
Remove the old pc_to_adb_keycode array and replace it with QKeyCode support. Signed-off-by: John Arbuckle --- Some of the keys do not translate as logically as we would think they would. For example the Q_KEY_CODE_CTRL_R does not work with ADB_KEY_RIGHT_CONTROL. The wrong key would show up in th

[Qemu-devel] [PATCH v3 4/4] ui/cocoa.m: switch to QKeyCode

2016-03-04 Thread Programmingkid
This patch removes the pc/xt keycode map and replaces it with the QKeyCode keymap. Signed-off-by: John Arbuckle --- Removed the LARGEST_KEYCODE marco. Changed macToQKeyCodeMap to mac_to_qkeycode_map. ui/cocoa.m | 317 +++-- 1 file changed

Re: [Qemu-devel] [PATCH v3 2/4] qapi-schema.json: Add power and keypad equal keys

2016-03-05 Thread Programmingkid
On Mar 5, 2016, at 7:03 PM, Eric Blake wrote: > On 03/04/2016 10:17 PM, Programmingkid wrote: >> Add the power and keypad equal keys. These keys are found on a real Macintosh >> keyboard. >> >> Signed-off-by: John Arbuckle >> --- >> qapi-schema.json

Re: [Qemu-devel] [PATCH v3 1/4] adb-keys.h: initial commit

2016-03-05 Thread Programmingkid
On Mar 5, 2016, at 7:02 PM, Eric Blake wrote: > On 03/04/2016 10:15 PM, Programmingkid wrote: >> This commit implements the adb-keys.h file. It holds information on adb >> keycode >> values. >> >> Signed-off-by: John Arbuckle >> --- >> Chan

[Qemu-devel] Google Summer of Code 2016: Make Mac OS 9 boot successfully with all Apple extensions

2016-03-06 Thread Programmingkid
=== TITLE === Make all versions of Mac OS 9 boot successfully in QEMU with all Apple extensions '''Summary:''' Short description of the project Mac OS 9.2 does boot in QEMU without extensions, but certain extensions that ship with Mac OS 9.2 need to be disabled or else they will cause bootin

Re: [Qemu-devel] [PATCH v3 1/4] adb-keys.h: initial commit

2016-03-06 Thread Programmingkid
On Mar 5, 2016, at 7:02 PM, Eric Blake wrote: > On 03/04/2016 10:15 PM, Programmingkid wrote: >> > >> + * >> + * Permission is hereby granted, free of charge, to any person obtaining a >> copy >> + * of this software and associated documentation files (th

[Qemu-devel] [PATCH v2] ui/cocoa.m: fix help menus

2016-03-07 Thread Programmingkid
Make the help menus actually work. The code will search thru three different locations for the help file. If it can't be found, it will look on the web for it. Signed-off-by: John Arbuckle --- Moved opening code to one method. Searches three different locations on the user's computer first. Att

Re: [Qemu-devel] [PATCH v3 1/4] adb-keys.h: initial commit

2016-03-07 Thread Programmingkid
On Mar 7, 2016, at 4:10 PM, Eric Blake wrote: > On 03/06/2016 01:35 PM, Programmingkid wrote: >> >> On Mar 5, 2016, at 7:02 PM, Eric Blake wrote: >> >>> On 03/04/2016 10:15 PM, Programmingkid wrote: >>>> >>> >>>> + * >&

[Qemu-devel] [PATCH v4 0/4] Implement some QKeyCode support

2016-03-10 Thread Programmingkid
This patchset adds QKeyCode support the adb and cocoa code. Note: you do not need to be on a Mac to test out the adb.c, qapi-schema.json, and adb-keys.h files. Only the cocoa.m file changes are Mac specific. If you are using Linux as a guest, then the xev command is what you could use to test ou

[Qemu-devel] [PATCH v4 1/4] ui/cocoa.m: switch to QKeyCode

2016-03-10 Thread Programmingkid
This patch removes the pc/xt keycode map and replaces it with the QKeyCode keymap. Signed-off-by: John Arbuckle --- v3 changes Removed the LARGEST_KEYCODE marco. Changed macToQKeyCodeMap to mac_to_qkeycode_map. ui/cocoa.m | 317 +++-- 1 fi

[Qemu-devel] [PATCH v4 2/4] qapi-schema.json: Add power and keypad equal keys

2016-03-10 Thread Programmingkid
Add the power and keypad equal keys. These keys are found on a real Macintosh keyboard. Signed-off-by: John Arbuckle --- qapi-schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 362c9d8..cbc3576 100644 --- a/qapi-schema.jso

[Qemu-devel] [PATCH v4 3/4] adb-keys.h: initial commit

2016-03-10 Thread Programmingkid
This commit implements the adb-keys.h file. It holds information on adb keycode values. Signed-off-by: John Arbuckle --- * v4 changes Replaced an 'a' with 'an'. Replaced __ADBKEYS__ with ADB_KEYS_H. Added additional information comment with link. Changed license to GNU GPL v2 or later. * v3 chan

[Qemu-devel] [PATCH v4 4/4] hw/input/adb.c: implement QKeyCode support

2016-03-10 Thread Programmingkid
Remove the old pc_to_adb_keycode array and replace it with QKeyCode support. Signed-off-by: John Arbuckle --- Some of the keys do not translate as logically as we would think they would. For example the Q_KEY_CODE_CTRL_R does not work with ADB_KEY_RIGHT_CONTROL. The wrong key would show up in the

Re: [Qemu-devel] [PATCH v4 2/4] qapi-schema.json: Add power and keypad equal keys

2016-03-11 Thread Programmingkid
On Mar 11, 2016, at 12:12 PM, Eric Blake wrote: > On 03/10/2016 07:28 PM, Programmingkid wrote: >> Add the power and keypad equal keys. These keys are found on a real Macintosh >> keyboard. >> >> Signed-off-by: John Arbuckle > > This looks unchanged from v3: &

Re: [Qemu-devel] [PATCH v4 0/4] Implement some QKeyCode support

2016-03-11 Thread Programmingkid
On Mar 11, 2016, at 12:14 PM, Eric Blake wrote: > On 03/10/2016 07:24 PM, Programmingkid wrote: >> This patchset adds QKeyCode support the adb and cocoa code. >> >> Note: you do not need to be on a Mac to test out the adb.c, qapi-schema.json, >> and adb-keys.h f

Re: [Qemu-devel] [PATCH v4 4/4] hw/input/adb.c: implement QKeyCode support

2016-03-11 Thread Programmingkid
On Mar 11, 2016, at 10:30 PM, Peter Maydell wrote: > On 11 March 2016 at 09:32, Programmingkid wrote: >> Remove the old pc_to_adb_keycode array and replace it with QKeyCode support. >> >> Signed-off-by: John Arbuckle >> --- >> Some of the keys do not transla

Re: [Qemu-devel] [PATCH v4 4/4] hw/input/adb.c: implement QKeyCode support

2016-03-11 Thread Programmingkid
On Mar 11, 2016, at 10:30 PM, Peter Maydell wrote: > >> +} >> +keycode = s->data[s->rptr]; >> +if (++s->rptr == sizeof(s->data)) { >> +s->rptr = 0; >> } >> +s->count--; >> + >> +obuf[0] = keycode; > > You are still trying to put a two byte keycode (ADB_KEY_POWER)

Re: [Qemu-devel] [PATCH] adb: change handler only when recognized

2016-03-12 Thread Programmingkid
On Mar 12, 2016, at 8:38 AM, Hervé Poussineau wrote: > ADB devices must take new handler into account only when they recognize it. > This lets operating systems probe for valid/invalid handles, to know device > capabilities. > > Add a FIXME in keyboard handler, which should use a different tran

Re: [Qemu-devel] [PATCH] adb: change handler only when recognized

2016-03-12 Thread Programmingkid
On Mar 12, 2016, at 12:44 PM, Hervé Poussineau wrote: > Le 12/03/2016 16:24, Mark Cave-Ayland a écrit : >> On 12/03/16 13:38, Hervé Poussineau wrote: >> >>> ADB devices must take new handler into account only when they recognize it. >>> This lets operating systems probe for valid/invalid handles

Re: [Qemu-devel] [Qemu-ppc] [PATCH] Replacing (and removing) get_ticks_per_sec() function with NANOSECONDS_PER_SECOND Signed-off-by: Rutuja Shah

2016-03-12 Thread Programmingkid
I do like the idea of your patch. Every millisecond we save is a millisecond earned. Because of formatting issues I had to fix your patch. Here is it with all the formatting problems fixed. I did see one problem while patching: patching file hw/input/tsc2005.c Hunk #1 FAILED at 291. 1 out of 1 h

Re: [Qemu-devel] [PATCH v4 4/4] hw/input/adb.c: implement QKeyCode support

2016-03-13 Thread Programmingkid
On Mar 13, 2016, at 11:40 AM, Peter Maydell wrote: > On 12 March 2016 at 05:40, Programmingkid wrote: >> >> On Mar 11, 2016, at 10:30 PM, Peter Maydell wrote: >> >>> >>>> +} >>>> +keycode = s->data[s->rptr]; >>>

Re: [Qemu-devel] [PATCH v4 4/4] hw/input/adb.c: implement QKeyCode support

2016-03-14 Thread Programmingkid
On Mar 13, 2016, at 11:40 AM, Peter Maydell wrote: > On 12 March 2016 at 05:40, Programmingkid wrote: >> >> On Mar 11, 2016, at 10:30 PM, Peter Maydell wrote: >> >>> >>>> +} >>>> +keycode = s->data[s->rptr]; >>>

Re: [Qemu-devel] [PATCH v4 4/4] hw/input/adb.c: implement QKeyCode support

2016-03-15 Thread Programmingkid
On Mar 15, 2016, at 5:22 AM, Peter Maydell wrote: > On 14 March 2016 at 23:06, Programmingkid wrote: >> On Mar 13, 2016, at 11:40 AM, Peter Maydell wrote: >>> Also, you need to handle the power-key key-release >>> scancode; as far as I can tell (by looking for info v

[Qemu-devel] [PATCH v5 1/4] ui/cocoa.m: switch to QKeyCode

2016-03-15 Thread Programmingkid
This patch removes the pc/xt keycode map and replaces it with the QKeyCode keymap. Signed-off-by: John Arbuckle Reviewed-by: Peter Maydell --- v3 changes Removed the LARGEST_KEYCODE marco. Changed macToQKeyCodeMap to mac_to_qkeycode_map. ui/cocoa.m | 317 +++---

[Qemu-devel] [PATCH v5 2/4] qapi-schema.json: Add power and keypad equal keys

2016-03-15 Thread Programmingkid
Add the power and keypad equal keys. These keys are found on a real Macintosh keyboard. Signed-off-by: John Arbuckle Reviewed-by: Eric Blake --- qapi-schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 362c9d8..cbc3576 100

[Qemu-devel] [PATCH v5 3/4] adb-keys.h: initial commit

2016-03-15 Thread Programmingkid
This commit implements the adb-keys.h file. It holds information on adb keycode values. Signed-off-by: John Arbuckle --- * v5 changes Commented out the ADB_KEY_POWER because it isn't in use. It wasn't deleted because it might be useful in the future. Changed the additional information link to ano

<    1   2   3   4   5   6   7   8   9   10   >