[Qemu-devel] Help debugging audio problem

2014-06-12 Thread Programmingkid
What does this code mean? if (!glue (s->nb_hw_voices_, TYPE)) { return NULL; } The code is found in audio_template.h at line 244. I tried using GDB to figure out what it was doing, but had little luck. The AC97 sound card does not work, and I'm trying to change that. Any help

Re: [Qemu-devel] [PATCH v2] Adds the ability to use the command key in the guest operating system.

2013-08-03 Thread Programmingkid
On Aug 3, 2013, at 7:06 PM, Peter Maydell wrote: > On 3 August 2013 23:52, G 3 wrote: >> This patch adds the ability to use the command key in the guest >> operating system. Just add -command-key 55 to the command line >> options sent to QEMU to use this feature. >> >> I have checked the patch

Re: [Qemu-devel] [PATCH v2] Adds the ability to use the command key in the guest operating system.

2013-08-04 Thread Programmingkid
On Aug 4, 2013, at 5:39 AM, Peter Maydell wrote: > On 4 August 2013 00:43, Programmingkid wrote: >> >> On Aug 3, 2013, at 7:06 PM, Peter Maydell wrote: >> >>> On 3 August 2013 23:52, G 3 wrote: >>>> This patch adds the ability to use the command ke

Re: [Qemu-devel] [PATCH v2] Adds the ability to use the command key in the guest operating system.

2013-08-04 Thread Programmingkid
On Aug 4, 2013, at 7:58 AM, Anthony Liguori wrote: > On Sun, Aug 4, 2013 at 4:39 AM, Peter Maydell > wrote: >> >> "Should the QEMU UI use the menu-accelerator key for menus or >> should it pass it through to the guest" is a generic UI front-end >> problem; any solution should not be specific t

Re: [Qemu-devel] [PATCH v2] Adds the ability to use the command key in the guest operating system.

2013-08-04 Thread Programmingkid
On Aug 4, 2013, at 2:07 PM, Peter Maydell wrote: > On 4 August 2013 18:53, Programmingkid wrote: >> On Aug 4, 2013, at 5:39 AM, Peter Maydell wrote >>> Right, but I don't have to specify anything about any other >>> key on the keyboard, why should command be sp

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2] Adds the ability to use the command key in the guest operating system.

2013-08-14 Thread Programmingkid
On Aug 14, 2013, at 4:58 PM, Alexander Graf wrote: > > On 14.08.2013, at 22:52, Peter Maydell wrote: > >> On 14 August 2013 21:44, Anthony Liguori wrote: >>> I'm confident there's a way to get hardware keycodes on OS X. There >>> is on every other UI platform that I know of. That's the best

Re: [Qemu-devel] [PATCH] ui/cocoa: Pass command key through to guest when VM has mousegrab

2013-12-10 Thread Programmingkid
On Dec 8, 2013, at 12:30 PM, Peter Maydell wrote: > The guest might want to be able to use the command key for its won > purposes (as command if it is MacOS X, or for the Windows key if > it is a PC guest, for instance). In line with other UI frontends, > pass it through if the guest has mousegra

Re: [Qemu-devel] [PATCH v2] Machine menu patch for Mac OS X

2015-02-11 Thread Programmingkid
On Feb 11, 2015, at 9:41 PM, Peter Maydell wrote: > On 20 January 2015 at 17:22, Programmingkid wrote: >> Features: >> Menu items to switch floppy and CD image files. >> Menu items to eject floppy and CD image files. >> Menu item to use /dev/cdrom. >> Verifies w

Re: [Qemu-devel] [PATCH v3] Fixes several full screen issues on Mac OS X

2015-02-11 Thread Programmingkid
On Feb 11, 2015, at 10:06 PM, Peter Maydell wrote: > On 21 January 2015 at 19:25, Programmingkid wrote: >> This patch makes several changes: >> - Minimizes distorted full screen display by respecting aspect >> ratios. >> - Makes full screen mode available on Mac OS 1

Re: [Qemu-devel] [PATCH] cocoa.m: Adds console items to the view menu

2015-02-12 Thread Programmingkid
On Feb 11, 2015, at 10:39 PM, Peter Maydell wrote: > On 24 January 2015 at 01:56, Programmingkid wrote: >> This patch adds these consoles to the View menu: >> VGA >> QEMU Monitor >> Parallel >> Serial >> >> Signed-off-by: John Arbuckle >

Re: [Qemu-devel] [PATCH] cocoa.m: Adds console items to the view menu

2015-02-12 Thread Programmingkid
On Feb 11, 2015, at 10:39 PM, Peter Maydell wrote: > On 24 January 2015 at 01:56, Programmingkid wrote: >> This patch adds these consoles to the View menu: >> VGA >> QEMU Monitor >> Parallel >> Serial >> >> Signed-off-by: John Arbuckle >

Re: [Qemu-devel] [PATCH] cocoa.m: Adds console items to the view menu

2015-02-13 Thread Programmingkid
On Feb 13, 2015, at 2:45 AM, Gerd Hoffmann wrote: > Hi, > >> We're going to need to automatically create and update >> the menu entries based on which consoles get created >> if we want this to work properly, I think. Gerd, any >> suggestions? Is there a hook for "list of active >> consoles ha

[Qemu-devel] [PATCH v3] ui/cocoa.m: Machine menu patch for Mac OS X

2015-02-13 Thread Programmingkid
Added features: Menu items to switch floppy and CD image files. Menu items to eject floppy and CD image files. Menu item to use /dev/cdrom. Verifies with the user before quitting QEMU by displaying a dialog box. Signed-off-by: John Arbuckle --- Added yellow background to the pause label. Removed

[Qemu-devel] [PATCH v2] ui/cocoa.m: Adds console items to the View menu

2015-02-13 Thread Programmingkid
Adds these items to the View menu: VGA Monitor Serial Parallel Signed-off-by: John Arbuckle --- Implemented new function that gives you the index for a given console name. Moved View menu code to its own function. Console menu items are now checked before being adding to the View menu. includ

[Qemu-devel] [PATCH v3] ui/cocoa.m: Adds console items to the View menu

2015-02-14 Thread Programmingkid
Adds these items to the View menu: VGA Monitor Serial Parallel Signed-off-by: John Arbuckle --- Removed commented out code. include/ui/console.h |1 + ui/cocoa.m | 60 - ui/console.c | 38 +++

Re: [Qemu-devel] [PATCH v3] ui/cocoa.m: Machine menu patch for Mac OS X

2015-02-16 Thread Programmingkid
On Feb 16, 2015, at 10:42 AM, Kevin Wolf wrote: > Am 16.02.2015 um 16:31 hat Programmingkid geschrieben: >> >> On Feb 16, 2015, at 5:08 AM, Kevin Wolf wrote: >> >>> Am 14.02.2015 um 03:28 hat Peter Maydell geschrieben: >>>> On 14 February 2015 at 01:43

Re: [Qemu-devel] [PATCH v3] ui/cocoa.m: Machine menu patch for Mac OS X

2015-02-16 Thread Programmingkid
On Feb 16, 2015, at 11:22 AM, Kevin Wolf wrote: > Am 16.02.2015 um 17:12 hat Programmingkid geschrieben: >> >> On Feb 16, 2015, at 10:42 AM, Kevin Wolf wrote: >> >>> Am 16.02.2015 um 16:31 hat Programmingkid geschrieben: >>>> >>>> On Feb

Re: [Qemu-devel] [PATCH v3] ui/cocoa.m: Machine menu patch for Mac OS X

2015-02-16 Thread Programmingkid
On Feb 16, 2015, at 6:41 PM, Peter Maydell wrote: > On 17 February 2015 at 01:22, Kevin Wolf wrote: >> You could still apply some translation table to the menu entry string, >> like: >> >> floppy0 => Floppy drive A >> floppy1 => Floppy drive B >> ide0-cd0=> IDE CD-ROM (Primary Maste

[Qemu-devel] [PATCH v4] ui/cocoa.m: Machine menu patch for Mac OS X

2015-02-16 Thread Programmingkid
Added features: Menu items to switch floppy and CD image files. Menu items to eject floppy and CD image files. Menu item to use /dev/cdrom. Verifies with the user before quitting QEMU by displaying a dialog box. Pause and resume menu items with the word pause displayed on the window. Signed-off-by

[Qemu-devel] [PATCH v5] ui/cocoa.m: Machine menu patch for Mac OS X

2015-02-16 Thread Programmingkid
Added features: Menu items to switch floppy and CD image files. Menu items to eject floppy and CD image files. Menu item to use /dev/cdrom. Verifies with the user before quitting QEMU by displaying a dialog box. Pause and resume menu items with the word paused displayed on the window. Signed-off-b

Re: [Qemu-devel] [PATCH v3] ui/cocoa.m: Machine menu patch for Mac OS X

2015-02-17 Thread Programmingkid
On Feb 17, 2015, at 4:57 AM, Kevin Wolf wrote: > Am 17.02.2015 um 10:41 hat Peter Maydell geschrieben: >> On 17 February 2015 at 18:07, Kevin Wolf wrote: >>> The ID is user-defined, so no, no assumption about it is safe. If you >>> like, you can name your floppy drive 'ide0-cd1', your virtio ha

Re: [Qemu-devel] [PATCH] console/gtk: add qemu_console_get_label

2015-02-17 Thread Programmingkid
On Feb 17, 2015, at 4:44 AM, Gerd Hoffmann wrote: > Add a new function to get a nice label for a given QemuConsole. > Drop the labeling code in gtk.c and use the new function instead. > > Signed-off-by: Gerd Hoffmann > --- > include/ui/console.h | 1 + > ui/console.c | 15 ++

[Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X

2015-02-18 Thread Programmingkid
This patch adds the instruction to have the build commands give QEMU an icon. This code runs on Mac OS X. Signed-off-by: John Arbuckle --- Makefile.target | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) mode change 100644 => 100755 Makefile.target diff --git

Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X

2015-02-19 Thread Programmingkid
On Feb 19, 2015, at 4:56 AM, Paolo Bonzini wrote: > > > On 18/02/2015 22:09, Programmingkid wrote: >> +# Take an image and make the image its own icon: >> +sips -i ../pc-bios/qemu-nsis.ico >> +# Extract the icon to its own resource file: >> +

Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X

2015-02-20 Thread Programmingkid
On Feb 20, 2015, at 7:36 AM, Paolo Bonzini wrote: > > > On 20/02/2015 13:18, Peter Maydell wrote: >> Why not just use the sips --out option to specify a different >> output file? That way we automatically put the current icon >> into the executable, and don't have to update a hand-created >> qe

Re: [Qemu-devel] [PATCH v3] Makefile.target: set icon for binary file on Mac OS X

2015-02-20 Thread Programmingkid
On Feb 20, 2015, at 6:41 AM, Paolo Bonzini wrote: > > > On 19/02/2015 21:51, Programmingkid wrote: >> This patch sets the icon for the QEMU binary on Mac OS X. >> >> Signed-off-by: John Arbuckle >> >> --- >> Added conditional code to

Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X

2015-02-20 Thread Programmingkid
On Feb 20, 2015, at 12:05 PM, Paolo Bonzini wrote: > > > On 20/02/2015 17:54, Programmingkid wrote: >>> I suspect the Windows icon is not a great match for Mac OS X which likes >>> to have big sizes (48x48 or 128x128). >> >> Definitely true. >> &

Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X

2015-02-20 Thread Programmingkid
On Feb 20, 2015, at 12:56 PM, Paolo Bonzini wrote: > > > On 20/02/2015 18:32, Programmingkid wrote: >>> Ok, so I'll apply v3 to my tree as soon as I get a Tested-by. >>> Please take a look into providing a .rsrc file with larger-sized >>> icons (I th

Re: [Qemu-devel] [PATCH v3] Makefile.target: set icon for binary file on Mac OS X

2015-02-21 Thread Programmingkid
On Feb 20, 2015, at 8:05 PM, Peter Maydell wrote: > On 21 February 2015 at 02:25, Paolo Bonzini wrote: >> I honestly don't know which versions are supported. 10.5 was released >> in 2007 and it is enough for Darwin/PPC, so it's probably okay. > > Yes, I think 10.5 is the earliest we currently

Re: [Qemu-devel] [PATCH v3] Makefile.target: set icon for binary file on Mac OS X

2015-02-21 Thread Programmingkid
On Feb 21, 2015, at 7:14 AM, Peter Maydell wrote: > On 20 February 2015 at 05:51, Programmingkid > wrote: >> This patch sets the icon for the QEMU binary on Mac OS X. >> >> Signed-off-by: John Arbuckle >> >> --- >> Added conditional code to mak

[Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target

2015-01-23 Thread Programmingkid
I used the newest version from QEMU's git with this id: a46b3aaf6bb038d4f6f192a84df204f10929e75c. When I tried to compile QEMU on Mac OS 10.6.8, I saw this error: qemu-coroutine.c:29: error: thread-local storage not supported for this target.

Re: [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target

2015-01-23 Thread Programmingkid
On Jan 23, 2015, at 3:33 PM, Paolo Bonzini wrote: > > > On 23/01/2015 20:27, Programmingkid wrote: >> I used the newest version from QEMU's git with this id: >> a46b3aaf6bb038d4f6f192a84df204f10929e75c. When I tried to compile >> QEMU on Mac OS 10.6.8, I saw

[Qemu-devel] makefile help: giving QEMU an icon

2015-01-23 Thread Programmingkid
I'm trying to make QEMU have an icon instead of the standard gray box icon it is given on Mac OS X. I figured out where to put the code in the makefile, but this location isn't useful. git is trained not to use it. The location is ./ppc-softmmu/makefile. My question is where do I put my icon set

Re: [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target

2015-01-23 Thread Programmingkid
On Jan 23, 2015, at 3:55 PM, Paolo Bonzini wrote: > > > On 23/01/2015 21:39, Programmingkid wrote: >> On 23/01/2015 20:27, Programmingkid wrote: >>> I used the newest version from QEMU's git with this id: >>> a46b3aaf6bb038d4f6f192a84df204f10929e75c. When

Re: [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target

2015-01-23 Thread Programmingkid
On Jan 23, 2015, at 4:48 PM, Paolo Bonzini wrote: > > > On 23/01/2015 22:37, Paolo Bonzini wrote: >> >> >> On 23/01/2015 22:33, Programmingkid wrote: >>>> Use clang then. >>> >>> Could you provide directions on how you want me to do

[Qemu-devel] [PATCH] cocoa.m: Adds console items to the view menu

2015-01-23 Thread Programmingkid
This patch adds these consoles to the View menu: VGA QEMU Monitor Parallel Serial Signed-off-by: John Arbuckle --- ui/cocoa.m | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index d37c29b..c88c0d0 100644 --- a/ui

[Qemu-devel] Audio functions

2015-01-29 Thread Programmingkid
Would anyone know what the *run_in() function is expected to do when it is implemented? It is located in audio/audio_int.h.

[Qemu-devel] Google Summer of Code 2015 - Implement Mac OS 9 support

2015-02-05 Thread Programmingkid
Implement support for Mac OS 9 in QEMU. QEMU has gone a long way in emulating a Macintosh. But we can still improve. Adding support for Mac OS 9 would be a great imporovement. This would allow everyone who misses their older applications to be reacquainted with them. It would also expand QEMU's

Re: [Qemu-devel] Google Summer of Code 2015 - Implement Mac OS 9 support

2015-02-05 Thread Programmingkid
On Feb 5, 2015, at 11:09 AM, Alexander Graf wrote: > > > On 05.02.15 17:07, Programmingkid wrote: >> Implement support for Mac OS 9 in QEMU. >> >> QEMU has gone a long way in emulating a Macintosh. But we can still improve. >> Adding support for Mac OS 9 wo

Re: [Qemu-devel] Google Summer of Code 2015 - Implement Mac OS 9 support

2015-02-06 Thread Programmingkid
On Feb 6, 2015, at 11:14 AM, Stefan Hajnoczi wrote: > On Thu, Feb 05, 2015 at 11:07:40AM -0500, Programmingkid wrote: >> Implement support for Mac OS 9 in QEMU. >> >> QEMU has gone a long way in emulating a Macintosh. But we can still improve. >> Adding support fo

Re: [Qemu-devel] Mac OS X no longer boots from cd

2015-03-20 Thread Programmingkid
On Mar 20, 2015, at 4:03 AM, Mark Cave-Ayland wrote: > On 20/03/15 02:38, Programmingkid wrote: > >> On Mar 19, 2015, at 11:29 AM, Alexander Graf wrote: >> >>> >>> >>> On 19.03.15 15:50, Programmingkid wrote: >>>>

Re: [Qemu-devel] Mac OS X no longer boots from cd

2015-03-20 Thread Programmingkid
On Mar 20, 2015, at 4:35 PM, John Snow wrote: > > > On 03/20/2015 04:08 PM, Programmingkid wrote: >> >> On Mar 20, 2015, at 4:03 AM, Mark Cave-Ayland wrote: >> >>> On 20/03/15 02:38, Programmingkid wrote: >>> >>&g

Re: [Qemu-devel] Mac OS X no longer boots from cd

2015-03-21 Thread Programmingkid
On Mar 20, 2015, at 6:31 PM, John Snow wrote: > > > On 03/20/2015 06:25 PM, Programmingkid wrote: >> >> On Mar 20, 2015, at 4:35 PM, John Snow wrote: >>> >>> If you feel like the CD rom boot failure is "new", I'd be very interested >

Re: [Qemu-devel] [Qemu-discuss] error - Guest has not initialized the display yet.

2015-03-25 Thread Programmingkid
On Mar 25, 2015, at 6:20 PM, qemu-discuss-requ...@nongnu.org wrote: >> QEMU window opens up, but I am getting this error "Guest has not initialized >> the display yet" >> I had enabled -sdl option while configuring qemu, but I am still getting >> that error. > > This isn't an error. It is just Q

Re: [Qemu-devel] [Qemu-discuss] error - Guest has not initialized the display yet.

2015-03-28 Thread Programmingkid
On Mar 26, 2015, at 4:31 PM, Mark Cave-Ayland wrote: > On 25/03/15 23:52, Programmingkid wrote: > > (Added Peter C as CC) > >> On Mar 25, 2015, at 6:20 PM, qemu-discuss-requ...@nongnu.org >> <mailto:qemu-discuss-requ...@nongnu.org> wrote: >> >>>

[Qemu-devel] [PATCH] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-27 Thread Programmingkid
The raw_getlength() function under Mac OS X incorrectly returned a constant value instead of calculating the size of a real CD-ROM disc. This patch fixes this problem and makes booting from a real CD-ROM disc possible again under Mac OS X. signed-off-by: John Arbuckle --- block/raw-posix.c

Re: [Qemu-devel] [PATCH v2] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-27 Thread Programmingkid
On Dec 27, 2014, at 8:19 PM, Peter Maydell wrote: > On 28 December 2014 at 00:36, Programmingkid > wrote: >> The raw_getlength() function under Mac OS X incorrectly returned a constant >> value instead of calculating the size of a real CD-ROM disc. This patch >> fixe

Re: [Qemu-devel] [PATCH v2] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-28 Thread Programmingkid
On Dec 28, 2014, at 5:23 AM, Peter Maydell wrote: > On 28 December 2014 at 03:00, Programmingkid > wrote: >> Here is version 2 of the patch. All the suggestions have been implemented. > > Thanks. > > Last round of nits, but the rest of the change is fine. > If y

[Qemu-devel] [PATCH v3] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-28 Thread Programmingkid
This patch fixes the problem with raw_getlength() on Mac OS X so that it actually calculates the correct size of a volume. It has been updated to fix certain coding style issues. Booting and using a real CD in QEMU works again. signed-off-by: John Arbuckle --- block/raw-posix.c | 19 ++

[Qemu-devel] [PATCH] Fixes fullscreen aspect ratio and leaving fullscreen mode problem on Mac OS X

2014-12-29 Thread Programmingkid
This patch fixes these problems for QEMU on Mac OS X: - fullscreen mode not having the correct aspect ratio - the inability to leave fullscreen mode signed-off-by: John Arbuckle From 5baa57950e03ed18afbb63b4b500bbde95baad5c Mon Sep 17 00:00:00 2001 From: John Arbuckle Date: Mon, 29 Dec 2014 22:

Re: [Qemu-devel] [PATCH v3] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-02 Thread Programmingkid
On Jan 2, 2015, at 9:38 AM, Stefan Hajnoczi wrote: > On Sun, Dec 28, 2014 at 04:18:38PM -0500, Programmingkid wrote: > > Suggestion for concise subject line: > > block/raw-posix: fix raw_getlength() for host CD-ROMs on Mac > >> This patch fixes the problem with raw_ge

[Qemu-devel] [PATCH v4] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-02 Thread Programmingkid
Removes redundant ret variable and renames sectorSize variable to meet QEMU coding standards. Signed-off-by: John Arbuckle --- block/raw-posix.c | 18 +- configure |2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/block/raw-posix.c b/block/ra

[Qemu-devel] [PATCH] Fixes several full screen issues on Mac OS X

2015-01-04 Thread Programmingkid
This patch makes several changes: - Fixes issue of returning to window mode and QEMU not setting the right graphic settings if there was a change during full screen mode. - Eliminated distorted full screen display. - Makes full screen mode available on Mac OS 10.7 and higher. - Removes unneeded gl

[Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-05 Thread Programmingkid
This patches does the following: - Allows user to select endian format of video display. This allows Mac OS X to be used as a guest and show all its colors correctly. Just add -display-endian-big to the command line to use this feature. - Removes unneeded #ifdefs in drawRect: method. Correct m

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-05 Thread Programmingkid
On Jan 5, 2015, at 5:06 PM, Peter Maydell wrote: > On 5 January 2015 at 21:27, Programmingkid wrote: >> This patches does the following: >> >> - Allows user to select endian format of video display. >> This allows Mac OS X to be used as a guest and show all its co

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-06 Thread Programmingkid
On Jan 6, 2015, at 5:04 AM, Peter Maydell wrote: > On 6 January 2015 at 09:47, Peter Maydell wrote: >> Yes, but it's basically making the user manually toggle a >> setting which we should be getting right ourselves. We >> should find out what QEMU's actually not doing correctly >> and fix that.

Re: [Qemu-devel] [PATCH v4] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-06 Thread Programmingkid
On Jan 6, 2015, at 9:02 AM, Stefan Hajnoczi wrote: > On Fri, Jan 02, 2015 at 04:44:38PM -0500, Programmingkid wrote: >> Removes redundant ret variable and renames sectorSize variable to meet QEMU >> coding standards. > > This is a changelog item for v4 of this patch.

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-06 Thread Programmingkid
On Jan 6, 2015, at 11:46 AM, Peter Maydell wrote: > On 6 January 2015 at 16:30, Programmingkid wrote: >> I was doing some searching and thought I should show you this: >> file: vga.c >> >> This indicates that all operations are expected to be in the little endian &g

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-06 Thread Programmingkid
On Jan 6, 2015, at 12:30 PM, Peter Maydell wrote: > On 6 January 2015 at 17:19, Programmingkid wrote: >> After investigating the TARGET_WORDS_BIGENDIAN code, I noticed >> that s->default_endian_fb was being set to true. So I undefined >> the macro and then ran QEMU. T

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-06 Thread Programmingkid
https://opensource.apple.com/source/IOGraphics/IOGraphics-45.3/IOGraphicsFamily/IOBootFramebuffer.cpp This file is used for the frame buffer in Mac OS 10.2. There is no mention of the endian format for the pixels. That seems to indicate an oversight on Apple's part. http://www.mcamafia.de/pdf/i

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-06 Thread Programmingkid
Just curious, if someone installed a cirrus vga video card into a PowerMac with Mac OS 10.2 installed, and it had the same color issue that QEMU has, would you be convinced that this problem is an issue with Mac OS X?

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-07 Thread Programmingkid
On Jan 7, 2015, at 9:43 AM, Gerd Hoffmann wrote: > Hi, > >> However, you should specify it whatever the host endianness and the host >> OS is. If this is not the case, you're just exchanging a bug with another. >> >> If something >> >> a) works with Linux host but not with Mac OS X host >>

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-07 Thread Programmingkid
On Jan 7, 2015, at 5:35 AM, Paolo Bonzini wrote: > > > On 06/01/2015 22:33, G 3 wrote: >> >> 00:01.0 VGA compatible controller: Technical Corp. Device (rev >> 02) (prog-if 00 [VGA controller]) >>Subsystem: Qumranet, Inc. Device 1100 >>Control: I/O+ Mem+ BusMaster- SpecCycl

[Qemu-devel] flags variable in DisplaySurface structure

2015-01-07 Thread Programmingkid
Does anyone know what the flags variable means in the DisplaySurface structure located in console.h? struct DisplaySurface { pixman_format_code_t format; pixman_image_t *image; uint8_t flags; };

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-08 Thread Programmingkid
On Jan 8, 2015, at 4:02 AM, Gerd Hoffmann wrote: > Hi, > >> VGA: Using shared surface for depth=32 swap=1 > > Ok, 32bpp. byteswapping needed. > > I guess the host is a intel macintosh then? Yes. I unfortunately don't have a fast enough PowerPC Mac to handle QEMU. It would be interesting to

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-09 Thread Programmingkid
On Jan 9, 2015, at 3:58 AM, Gerd Hoffmann wrote: > On Do, 2015-01-08 at 12:07 -0500, Programmingkid wrote: >> On Jan 8, 2015, at 4:02 AM, Gerd Hoffmann wrote: >> >>> Hi, >>> >>>> VGA: Using shared surface for depth=32 swap=1 >>> >>

[Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-09 Thread Programmingkid
This patch fixes the Mac OS X guest color problem on Mac OS X hosts. Tested using Mac OS 10.2 and Debian Linux 5 operating systems for the guest on qemu-system-ppc. Also tested using Windows XP as a guest in qemu-system-i386. Signed-off-by: John Arbuckle --- v2: Eliminated the -display-endian-

[Qemu-devel] Please update Pixman submodule

2015-01-11 Thread Programmingkid
The Pixman version that installs with this command has issues: (2) Fetch the pixman submodule, using: git submodule update --init pixman It does not compile on Mac OS X. The newest version from here does compile: git://anongit.freedesktop.org/pixman It would help a lot if someone c

Re: [Qemu-devel] Please update Pixman submodule

2015-01-11 Thread Programmingkid
On Jan 11, 2015, at 1:40 PM, Peter Maydell wrote: > On 11 January 2015 at 18:23, Programmingkid wrote: >> The Pixman version that installs with this command has issues: >> (2) Fetch the pixman submodule, using: >> git submodule update --init pixman >> &g

[Qemu-devel] [PATCH] Makes -full-screen option work on Mac OS X

2015-01-11 Thread Programmingkid
This patch makes the -full-screen option work under Mac OS X. Signed-off-by: John Arbuckle --- ui/cocoa.m | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 685081e..3a70cfc 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -

Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-12 Thread Programmingkid
On Jan 12, 2015, at 4:12 AM, Gerd Hoffmann wrote: > Hi, > >> +/* Determines the pixel format of the frame buffer */ >> +if (surface->format == PIXMAN_b8g8r8x8) { >> +bitmap_info = kCGBitmapByteOrder32Big | kCGImageAlphaNoneSkipFirst; >> +} > > That certainly goes into the r

Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-12 Thread Programmingkid
On Jan 12, 2015, at 10:11 AM, Paolo Bonzini wrote: > > > On 12/01/2015 15:51, Programmingkid wrote: >>>>>> +/* Determines the pixel format of the frame buffer */ + >>>>>> if (surface->format == PIXMAN_b8g8r8x8)

Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-12 Thread Programmingkid
On Jan 12, 2015, at 10:04 AM, Peter Maydell wrote: > On 12 January 2015 at 14:51, Programmingkid wrote: >> On Jan 12, 2015, at 4:12 AM, Gerd Hoffmann wrote: >>> I suggest to add fixed endian defines for 32bpp to >>> include/ui/qemu-pixman.h (there already is one for

Re: [Qemu-devel] [PATCH] Makes -full-screen option work on Mac OS X

2015-01-12 Thread Programmingkid
On Jan 12, 2015, at 11:10 AM, Peter Maydell wrote: > On 12 January 2015 at 00:31, Programmingkid wrote: >> This patch makes the -full-screen option work under Mac OS X. >> >> Signed-off-by: John Arbuckle > >> +// Looks for the -full-screen option bein

[Qemu-devel] [PATCH v2] Makes -full-screen option work on Mac OS X

2015-01-12 Thread Programmingkid
This patch makes the -full-screen option actually instruct QEMU to enter fullscreen at startup. Signed-off-by: John Arbuckle --- Removed the set_to_full_screen variable. Removed the scanForFullScreenOption() function. ui/cocoa.m |6 ++ 1 files changed, 6 insertions(+), 0 deletions(

[Qemu-devel] [PATCH] Machine menu patch for Mac OS X

2015-01-12 Thread Programmingkid
This patch adds a Machine menu to QEMU. This menu gives the user the ability to easily work with floppy and CD image files. Features: Menu items to switch floppy and CD image files. Menu items to eject floppy and CD image files. Menu item to use /dev/cdrom. Verifies with the user before quitting

Re: [Qemu-devel] [PATCH v4] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-13 Thread Programmingkid
On Jan 13, 2015, at 9:05 AM, Stefan Hajnoczi wrote: > On Tue, Jan 6, 2015 at 3:04 PM, Programmingkid > wrote: >> >> On Jan 6, 2015, at 9:02 AM, Stefan Hajnoczi wrote: >> >>> On Fri, Jan 02, 2015 at 04:44:38PM -0500, Programmingkid wrote: >>>&g

[Qemu-devel] [PATCH v5] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-13 Thread Programmingkid
Allows for using real cdrom disc in QEMU under Mac OS X. This command was used to see if this patch worked: ./qemu-system-i386 -drive if=none,id=drive0,file=/dev/null,format=raw Signed-off-by: John Arbuckle --- Replaced -errno with 0 for ioctl() failure return value. "make check" now passes wit

Re: [Qemu-devel] [PATCH v5] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-13 Thread Programmingkid
On Jan 13, 2015, at 1:34 PM, Peter Maydell wrote: > On 13 January 2015 at 18:26, Programmingkid wrote: >> Allows for using real cdrom disc in QEMU under Mac OS X. >> >> This command was used to see if this patch worked: >> ./qemu-system-i386 -drive if=none,id=drive

[Qemu-devel] [PATCH v6] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-13 Thread Programmingkid
Allows QEMU on Mac OS X to use a real cdrom again. Signed-off-by: John Arbuckle --- Added fallback code - uses lseek() if ioctl() fails. block/raw-posix.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c ind

[Qemu-devel] [PATCH] Fixes key mapping so all keys work

2015-01-13 Thread Programmingkid
This patch allows for all the keys on an Apple extended keyboard to work in QEMU. Signed-off-by: John Arbuckle --- ui/cocoa.m | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index c8535a3..afac987 100644 --- a/ui/co

Re: [Qemu-devel] [PATCH] Fixes several full screen issues on Mac OS X

2015-01-14 Thread Programmingkid
On Jan 14, 2015, at 12:19 PM, Peter Maydell wrote: > On 4 January 2015 at 23:44, Programmingkid wrote: >> This patch makes several changes: >> - Fixes issue of returning to window mode and QEMU not setting >> the right graphic settings if there was a change du

Re: [Qemu-devel] [PATCH v2] Makes -full-screen option work on Mac OS X

2015-01-14 Thread Programmingkid
On Jan 14, 2015, at 12:09 PM, Peter Maydell wrote: > On 12 January 2015 at 16:46, Programmingkid wrote: >> This patch makes the -full-screen option actually instruct QEMU to enter >> fullscreen at startup. >> >> Signed-off-by: John Arbuckle >> >>

Re: [Qemu-devel] [PATCH v6] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-14 Thread Programmingkid
On Jan 14, 2015, at 12:02 PM, Peter Maydell wrote: > On 13 January 2015 at 20:07, Programmingkid wrote: >> Allows QEMU on Mac OS X to use a real cdrom again. >> >> Signed-off-by: John Arbuckle >> >> --- >> Added fallback code - uses lseek() if ioctl()

Re: [Qemu-devel] [PATCH] Machine menu patch for Mac OS X

2015-01-14 Thread Programmingkid
On Jan 14, 2015, at 12:42 PM, Peter Maydell wrote: > On 13 January 2015 at 01:49, Programmingkid wrote: >> This patch adds a Machine menu to QEMU. This menu gives the user the ability >> to easily work with floppy and CD image files. >> >> Features: >> Menu it

Re: [Qemu-devel] [PATCH] Fixes several full screen issues on Mac OS X

2015-01-14 Thread Programmingkid
On Jan 14, 2015, at 1:29 PM, Peter Maydell wrote: > On 14 January 2015 at 18:18, Programmingkid wrote: >> >> On Jan 14, 2015, at 12:19 PM, Peter Maydell wrote: >>> (2) Having done this I find that all my other application windows >>> have been squashe

Re: [Qemu-devel] [PATCH] Machine menu patch for Mac OS X

2015-01-14 Thread Programmingkid
On Jan 14, 2015, at 1:42 PM, Peter Maydell wrote: > On 14 January 2015 at 18:34, Programmingkid wrote: >> >> On Jan 14, 2015, at 12:42 PM, Peter Maydell wrote: >> >>> On 13 January 2015 at 01:49, Programmingkid >>> wrote: >>>> This patch ad

[Qemu-devel] [PATCH v2] Fixes key mapping so all keys work

2015-01-15 Thread Programmingkid
Fixes keyboard mapping so right shift, right command, right option, right control, keypad period, keypad '=', keypad enter, and F13 all work. Signed-off-by: John Arbuckle --- Undid most changes to keyboard map in cocoa.m. Most changes made to keyboard map in adb.c. Since there is no keypad '=

[Qemu-devel] [PATCH v7] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-15 Thread Programmingkid
This patch allows Mac OS X to use a real CDROM disc in QEMU. Testing this patch will require using QEMU v2.2.0 because the current git version has a bug in it that prevents /dev/cdrom from being used. "make check" did pass and my Debian boot disc did work. Signed-off-by: John Arbuckle --- To

Re: [Qemu-devel] [PATCH v7] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2015-01-19 Thread Programmingkid
On Jan 16, 2015, at 3:22 AM, Markus Armbruster wrote: > Programmingkid writes: > >> This patch allows Mac OS X to use a real CDROM disc in QEMU. Testing this >> patch will require using QEMU v2.2.0 because the current git version has a >> bug in it that prevents /d

[Qemu-devel] [PATCH v8] block/raw-posix.c: Fix raw_getlength() on Mac OS X for CD

2015-01-19 Thread Programmingkid
Subject was: Re: [PATCH v7] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD This patch allows Mac OS X to use a real CDROM disc in QEMU. Testing this patch will require using QEMU v2.2.0 because the current git version has a bug in it that

Re: [Qemu-devel] [PATCH v8] block/raw-posix.c: Fix raw_getlength() on Mac OS X for CD

2015-01-20 Thread Programmingkid
On Jan 20, 2015, at 3:33 AM, Markus Armbruster wrote: > Programmingkid writes: > >> Subject was: >> Re: [PATCH v7] block/raw-posix.c: Fixes raw_getlength() >> on Mac OS X so that it reports the correct length of a real CD > > Patch history information goes... &

Re: [Qemu-devel] [PATCH v8] block/raw-posix.c: Fix raw_getlength() on Mac OS X for CD

2015-01-20 Thread Programmingkid
On Jan 20, 2015, at 10:22 AM, Eric Blake wrote: > On 01/20/2015 07:29 AM, Programmingkid wrote: >> >> On Jan 20, 2015, at 3:33 AM, Markus Armbruster wrote: >> >>> Programmingkid writes: >>> >>>> Subject was: >>>> Re: [PATCH v7

[Qemu-devel] [PATCH v2] Machine menu patch for Mac OS X

2015-01-20 Thread Programmingkid
Features: Menu items to switch floppy and CD image files. Menu items to eject floppy and CD image files. Menu item to use /dev/cdrom. Verifies with the user before quitting QEMU by displaying a dialog box. Signed-off-by: John Arbuckle --- Changed setting the window title to pause to displaying t

Re: [Qemu-devel] [PATCH v2] Makes -full-screen option work on Mac OS X

2015-01-20 Thread Programmingkid
On Jan 14, 2015, at 12:09 PM, Peter Maydell wrote: > On 12 January 2015 at 16:46, Programmingkid wrote: >> This patch makes the -full-screen option actually instruct QEMU to enter >> fullscreen at startup. >> >> Signed-off-by: John Arbuckle >> >>

[Qemu-devel] [PATCH v3] Makes -full-screen option work on Mac OS X

2015-01-20 Thread Programmingkid
This patch makes the -full-screen option actually instruct QEMU to enter fullscreen at startup, on Mac OS X. Signed-off-by: John Arbuckle --- Eliminated compile warning. ui/cocoa.m |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index d37c2

Re: [Qemu-devel] [PATCH v8] block/raw-posix.c: Fix raw_getlength() on Mac OS X for CD

2015-01-20 Thread Programmingkid
On Jan 20, 2015, at 3:28 PM, Markus Armbruster wrote: > Programmingkid writes: > >> On Jan 20, 2015, at 10:22 AM, Eric Blake wrote: >> >>> On 01/20/2015 07:29 AM, Programmingkid wrote: >>>> >>>> On Jan 20, 2015, at 3:33 AM, Markus A

[Qemu-devel] [PATCH v2] Fixes several full screen issues on Mac OS X

2015-01-20 Thread Programmingkid
This patch makes several changes: - Minimizes distorted full screen display by respecting aspect ratios. - Makes full screen mode available on Mac OS 10.7 and higher. - Allows user to decide if video should be stretched to fill the screen, using a menu item called "Zoom To Fit". - Hides the normalW

Re: [Qemu-devel] [PATCH v8] block/raw-posix.c: Fix raw_getlength() on Mac OS X for CD

2015-01-21 Thread Programmingkid
On Jan 21, 2015, at 2:54 AM, Markus Armbruster wrote: > Programmingkid writes: > >> On Jan 20, 2015, at 3:28 PM, Markus Armbruster wrote: >> >>> Programmingkid writes: >>> >>>> On Jan 20, 2015, at 10:22 AM, Eric Blake wrote: >>

[Qemu-devel] [PATCH v3] Fixes several full screen issues on Mac OS X

2015-01-21 Thread Programmingkid
This patch makes several changes: - Minimizes distorted full screen display by respecting aspect ratios. - Makes full screen mode available on Mac OS 10.7 and higher. - Allows user to decide if video should be stretched to fill the screen, using a menu item called "Zoom To Fit". - Hides the normalW

  1   2   3   4   5   6   7   8   9   10   >