[PATCH] Add qemu_vga.ndrv to build/pc-bios folder

2021-08-31 Thread John Arbuckle
-by: John Arbuckle --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 9a79a004d7..281577e46f 100755 --- a/configure +++ b/configure @@ -5056,7 +5056,9 @@ for bios_file in \ $source_path/pc-bios/openbios-* \ $source_path/pc-bios

[PATCH v2] Report any problems with loading the VGA driver for Macintosh targets

2021-08-30 Thread John Arbuckle
messages that the user can see when a problem takes place with loading this driver in the future. Signed-off-by: John Arbuckle --- v2 changes: - Replaced printf() with warn_report(). - Removed newline characters from messages. hw/ppc/mac_newworld.c | 6 ++ hw/ppc/mac_oldworld.c | 6 ++ 2 files

[PATCH] Report any problems with loading the VGA driver for PPC Macintosh targets

2021-08-27 Thread John Arbuckle
messages that the user can see when a problem takes place with loading this driver in the future. Signed-off-by: John Arbuckle --- hw/ppc/mac_newworld.c | 6 ++ hw/ppc/mac_oldworld.c | 6 ++ 2 files changed, 12 insertions(+) diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c index

[PATCH 0/2] cocoa.m: keyboard quality of life reborn

2021-07-30 Thread John Arbuckle
These patches can really help improve keyboard usage with a guest. Based on patches by Gustavo Noronha Silva . John Arbuckle (2): Add full keyboard grab support Add ability to swap command/meta and options keys ui/cocoa.m | 178 ++--- 1 file

[PATCH 1/2] ui/cocoa.m: Add full keyboard grab support

2021-07-30 Thread John Arbuckle
his varies with each Mac OS version. Based on patch by Gustavo Noronha Silva . Signed-off-by: John Arbuckle --- ui/cocoa.m | 112 + 1 file changed, 112 insertions(+) diff --git a/ui/cocoa.m b/ui/cocoa.m index 9f72844b07..fdef9e9901 100644 --- a/ui/coc

[PATCH 2/2] ui/cocoa.m: Add ability to swap command/meta and options keys

2021-07-30 Thread John Arbuckle
a Macintosh keyboard user feel almost at home with a PC keyboard. The same could be said for PC keyboard users who have to use a Macinosh keyboard. Based on patch by Gustavo Noronha Silva . Signed-off-by: John Arbuckle --- ui/cocoa.m | 66 +++--- 1 file

[PATCH v2] Set icon for QEMU binary on Mac OS

2021-07-05 Thread John Arbuckle
Signed-off-by: John Arbuckle --- v1 changes: Rewrote the patch as the maintainer had wanted. meson.build| 15 ++- scripts/entitlement.sh | 10 +- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/meson.build b/meson.build index db6789af9c

[Bug 1927408] Re: USB Ethernet device (RNDIS) does not work on several tested operating systems

2021-05-06 Thread John Arbuckle
See https://gitlab.com/qemu-project/qemu/-/issues/198 for further updates. ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #198 https://gitlab.com/qemu-project/qemu/-/issues/198 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to

[Bug 1927408] [NEW] USB Ethernet device (RNDIS) does not work on several tested operating systems

2021-05-06 Thread John Arbuckle
Public bug reported: The USB ethernet device does not work on most versions of operating systems I have tested. For each operating system the command to use this device was: -netdev user,id=mynet1 -device usb-net,netdev=mynet1. Windows 2000 (qemu-system-i386): - failed to load a driver for the

[Bug 1785485] Re: Mouse moves erratically when using scroll wheel on Windows NT 4, Windows 95, and Windows 3.1 guests

2021-05-02 Thread John Arbuckle
After doing tests with Windows 95, 3,1, NT 4.0, and 2000 I can say this bug appears to be fixed. ** Changed in: qemu Status: Incomplete => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Bug 1850570] Re: Cannot use usb-host on Mac OS

2021-04-04 Thread John Arbuckle
I am also having problems with using real USB devices. I tried a C-Media USB sound card, a CISCO USB headset, and a PNY flash drive. All of them seem to be detected by the Windows 7 guest, but can't be started for some reason. I have tried running as root. I didn't see any libusb errors. My

[Bug 1917161] Re: Parameter 'type' expects a netdev backend type

2021-03-15 Thread John Arbuckle
I looks like the solution to my problem was to delete the slirp folder, then do a 'git pull', then make QEMU again. Networking is working again. ** Changed in: qemu Status: Incomplete => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which

Re: [Bug 1917161] Parameter 'type' expects a netdev backend type

2021-03-02 Thread John Arbuckle
I see 14 files in the src folder in the slirp folder. I am using git. This is what I see when I run git submodule: objc[1854]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x203eaf8f0) and ?? (0x1147702b8). One of the two will be used. Which one is undefined. objc[1854]:

[Bug 1917161] Re: Parameter 'type' expects a netdev backend type

2021-03-01 Thread John Arbuckle
I did try './configure --target-list=i386-softmmu --enable-slirp' but it failed with this error message: Run-time dependency slirp found: NO (tried pkgconfig) ../meson.build:1498:4: ERROR: Dependency "slirp" not found, tried pkgconfig I thought slirp came with QEMU. I do see a slirp folder

[Bug 1917161] [NEW] Parameter 'type' expects a netdev backend type

2021-02-27 Thread John Arbuckle
Public bug reported: When using QEMU on an M1 Mac with Mac OS 11.1, I see this error message when trying to enable networking for a guest: Parameter 'type' expects a netdev backend type Example command: qemu-system-i386 -m 700 -hda -netdev user,id=n0 -device rtl8139,netdev=n0 What should

[Bug 1916344] Re: User mode networking not working properly on QEMU on Mac OS X host

2021-02-24 Thread John Arbuckle
I'm on Mac OS 11.1 on an M1 Mac. I did some tests with QEMU 2.10.1 and 5.3 and here are the results: QEMU 2.10.1: - Ran Windows XP as a guest - qemu-system-i386 -m 700 -hda -netdev user,id=n0 -device rtl8139,netdev=n0 - Internet Explorer was able to load a web page. QEMU 5.3.x: - Tried to run

[Bug 1916344] Re: User mode networking not working properly on QEMU on Mac OS X host

2021-02-21 Thread John Arbuckle
I built QEMU from the git repo. My Windows XP and Mac OS 10.4 guests cannot access the internet. I'm on a M1 Mac running Mac OS 11.1. I use qemu-system-i386 and qemu-system-ppc. I tried installing slirp from MacPorts but it is broken. It might have been broken for years. See

[Bug 1914294] Re: Windows XP displays black screen when smp option is used

2021-02-15 Thread John Arbuckle
To fix this problem open Windows XP's System Restore and restore from a point before using the smp option. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1914294 Title: Windows XP displays black

[Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386

2021-02-10 Thread John Arbuckle
I found a way to fix the high host cpu usage issue. To fix this issue click on Start->All Programs->Accessories->System Tools->System Restore. Then pick a restore point that is set before you tried the smp option. After the VM restarts the high CPU usage issue will be gone :) -- You received

[Bug 1914294] Re: Windows XP displays black screen when smp option is used

2021-02-10 Thread John Arbuckle
Command line to reproduce this issue: qemu-system-i386 -m 700 -hda -smp 2 Last commit tested with this problem: 1214d55d1c41fbab3a9973a05085b8760647e411 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Bug 1914294] Re: Windows XP displays black screen when smp option is used

2021-02-10 Thread John Arbuckle
I restarted QEMU without the '-smp 2' option and Windows XP started working again. The only problem is the host CPU usage will stay at 100% even with the guest CPU load being close to 0%. The only way to fix this problem that I know currently is to reinstall Windows XP. -- You received this bug

[Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386

2021-02-10 Thread John Arbuckle
After updating QEMU to 1214d55d1c41fbab3a9973a05085b8760647e411, I reinstalled Windows XP and the host CPU usage at idle was normal. My guess is that I picked a bad commit to reinstall Windows XP. I tried using "-smp 4". Windows XP started up to a black screen. When I restarted the problem with

[Bug 1913505] Re: Windows XP slow on Apple M1

2021-02-10 Thread John Arbuckle
Just to note when I tried reinstalling Windows XP, the installation appeared to be stuck at this screen. I restarted QEMU to continue. ** Attachment added: "Windows XP stuck.png" https://bugs.launchpad.net/qemu/+bug/1913505/+attachment/5462351/+files/Windows%20XP%20stuck.png -- You

[Bug 1913505] Re: Windows XP slow on Apple M1

2021-02-10 Thread John Arbuckle
Tried the patch. Start up time does not appear to be improved. I used both qemu-system-i386 and qemu-system-x86_64 with the same results. To compare notes I tried Windows 7. It starts up much faster than Windows XP. -- You received this bug notification because you are a member of qemu-

[Bug 1913505] Re: Windows XP slow on Apple M1

2021-02-08 Thread John Arbuckle
I installed QEMU thru home-brew. When I tried to run it I saw this error message: "Could not allocate dynamic translator buffer". -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1913505 Title:

[Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386

2021-02-04 Thread John Arbuckle
For version 5.2 of qemu-system-i386 the instruction the guest is busy executing over and over again is this: addb %al, (%eax) For version 2.10.1 this is the instruction that is being executed when the guest is idle: add %al,(%eax) -- You received this bug notification because you are a member

[Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386

2021-02-04 Thread John Arbuckle
Just to compare notes I ran my same Windows XP image on an older version of QEMU. This is version 2.10.1. It was built for the x86_64 architecture. The host CPU architecture is aarm64. The host CPU usage was actually very low when the guest CPU usage was low. The guest was using about 8% and the

[Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386

2021-02-04 Thread John Arbuckle
Public bug reported: When running Windows XP in qemu-system-i386, the cpu usage of QEMU is about 100% even when the guest CPU usage is close to 2%. The host cpu usage should be low when the guest cpu usage is low. Command: qemu-system-i386 -hda Using this command also shows around 100% host

[Bug 1914294] [NEW] Windows XP displays black screen when smp option is used

2021-02-02 Thread John Arbuckle
Public bug reported: When I use Windows XP with the -smp option, the screen goes black. The only thing I can see is a cursor. I have tried -smp 2, -smp cores=4, and -smp cores=2. My info: Host: M1 Mac Mac OS 11.1 QEMU 5.2 at cf7ca7d5b9faca13f1f8e3ea92cfb2f741eb0c0e. Guest: 32-bit Windows XP

[PATCH] Set icon for QEMU binary on Mac OS

2021-02-02 Thread John Arbuckle
Before switching the build system over to Meson, an icon was added to the QEMU binary on Mac OS. This patch adds back that feature. Signed-off-by: John Arbuckle --- meson.build | 20 1 file changed, 20 insertions(+) diff --git a/meson.build b/meson.build index f00b7754fd

[PATCH] Add support for building on ARM Macs

2021-01-28 Thread John Arbuckle
Adds support for building QEMU on ARM-based Macintoshes. This patch has been tested on an M1 Mac running Mac OS 11.1 and on a 64-bit x86 Mac running Mac OS 10.12. Signed-off-by: John Arbuckle --- configure | 49 +++-- 1 file changed, 39 insertions

[PATCH v4] Implement the Screamer sound chip for the mac99 machine type

2020-02-17 Thread John Arbuckle
This patch enables the playback of audio on a Mac OS 9 or Mac OS X guest. Signed-off-by: John Arbuckle --- v4 changes: - Switched to using HWADDR_PRIx in several debug statements. v3 changes: - Updated the location of patched code in hw/ppc/kconfig. - Removed setting the props variable

[PATCH v3] Implement the Screamer sound chip for the mac99 machine type

2020-02-16 Thread John Arbuckle
Signed-off-by: John Arbuckle --- v3 changes: - Updated the location of patched code in hw/ppc/kconfig. - Removed setting the props variable in screamer.c. - Removed the screamer_properties variable in screamer.c. v2 changes: - Fixed a bug that prevented the sampling rate from being changed. hw

Ping: [PATCH v2] Implement the Screamer sound chip for the mac99 machine type

2020-01-12 Thread John Arbuckle
Ping https://patchwork.kernel.org/patch/11311763/ This patch enables the playback of audio on a Mac OS 9 or Mac OS X guest. Signed-off-by: John Arbuckle --- v2 changes: - Fixed a bug that prevented the sampling rate from being changed. hw/audio/Kconfig | 3 + hw/audio

[Bug 1859081] Re: Mouse way too fast when Qemu is on a Windows VM with a OS 9 Guest

2020-01-09 Thread John Arbuckle
What is the QEMU command-line you use? Does this problem exist with the usb mouse (-device usb-mouse)? Could you try upgrading to the latest version of QEMU and see if the issue is resolved please? -- You received this bug notification because you are a member of qemu- devel-ml, which is

[PATCH v2] Implement the Screamer sound chip for the mac99 machine type

2019-12-28 Thread John Arbuckle
This patch enables the playback of audio on a Mac OS 9 or Mac OS X guest. Signed-off-by: John Arbuckle --- v2 changes: - Fixed a bug that prevented the sampling rate from being changed. hw/audio/Kconfig | 3 + hw/audio/Makefile.objs| 2 + hw/audio/screamer.c

[PATCH] Implement the Screamer sound chip for the mac99 machine type

2019-12-21 Thread John Arbuckle
This patch enables the playback of audio on a Mac OS 9 or Mac OS X guest. Signed-off-by: John Arbuckle --- hw/audio/Kconfig | 3 + hw/audio/Makefile.objs| 2 + hw/audio/screamer.c | 992 ++ hw/misc/macio/macio.c

Re: [Bug 1623998] Re: pulseaudio Invalid argument error

2019-10-07 Thread John Arbuckle
Here is the output. I assumed you meant qemu-system-ppc. $ ./ppc-softmmu/qemu-system-ppc -audio-help Environment variable based configuration deprecated. Please use the new -audiodev option. Equivalent -audiodev to your current environment variables: (Since you didn't specify QEMU_AUDIO_DRV,

[Bug 1623998] Re: pulseaudio Invalid argument error

2019-10-04 Thread John Arbuckle
I tried using "-device usb-audio"and the guest was able to detect the USB audio card, but for some reason no audio would play. I did not see any messages in the terminal about pulseaudio. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to

[Qemu-devel] [PATCH 1/2] Implement Floating Point flag Fraction Rounded

2019-05-24 Thread John Arbuckle
Signed-off-by: John Arbuckle --- fpu/softfloat.c | 15 --- include/fpu/softfloat-types.h | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 2ba36ec370..ac34f6a2de 100644 --- a/fpu/softfloat.c +++ b/fpu

[Qemu-devel] [PATCH 0/2] Implement PowerPC FPSCR flag Fraction Rounded

2019-05-24 Thread John Arbuckle
. John Arbuckle (2): Implement Floating Point flag Fraction Rounded Implement the PowerPC Floating Point Status and Control Register Fraction Rounded bit fpu/softfloat.c | 15 --- include/fpu/softfloat-types.h | 1 + target/ppc/fpu_helper.c | 4 3 files

[Qemu-devel] [PATCH 2/2] Implement the PowerPC Floating Point Status and Control Register Fraction Rounded bit

2019-05-24 Thread John Arbuckle
Signed-off-by: John Arbuckle --- target/ppc/fpu_helper.c | 4 1 file changed, 4 insertions(+) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index 0b7308f539..0baf1ce8e4 100644 --- a/target/ppc/fpu_helper.c +++ b/target/ppc/fpu_helper.c @@ -630,6 +630,10 @@ static void

[Qemu-devel] [PATCH] Implement Fraction Rounded bit in FPSCR for PowerPC

2019-05-21 Thread John Arbuckle
Implement the PowerPC floating point status and control register flag Fraction Rounded. Signed-off-by: John Arbuckle --- fpu/softfloat.c | 15 --- include/fpu/softfloat-types.h | 1 + target/ppc/fpu_helper.c | 4 3 files changed, 17 insertions(+), 3

[Qemu-devel] [PATCH] configure: Change capstone's default state to disabled

2019-04-18 Thread John Arbuckle
Capstone is not necessary in order to use QEMU. Disable it by default. This will save the user the pain of having to figure why QEMU isn't building when this library is missing. Signed-off-by: John Arbuckle --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] (no subject)

2018-11-27 Thread John Arbuckle
>From af4497f2b161bb4165acb8eee5cae3f2a7ea2227 Mon Sep 17 00:00:00 2001 From: John Arbuckle Date: Tue, 27 Nov 2018 20:01:20 -0500 Subject: [PATCH] ui/cocoa.m: fix crash due to cocoa_refresh() on Mac OS 10.14 Mac OS 10.14 only wants UI code to be called from the main thread. The cocoa_refr

[Qemu-devel] [PATCH v3] qemu-img.c: add help for each command

2018-09-25 Thread John Arbuckle
Add the ability for the user to display help for a certain command. Example: qemu-img create --help What is printed is all the options available to this command and an example. Signed-off-by: John Arbuckle --- v3 changes: Fixed a bug that caused qemu-img to crash when running a command without

Re: [Qemu-devel] [Bug 1332234] Re: qemu-system-ppc no longer able to read real cdrom

2018-09-24 Thread John Arbuckle
> On Sep 24, 2018, at 5:14 AM, Thomas Huth <1332...@bugs.launchpad.net> wrote: > > According to https://bugs.launchpad.net/qemu/+bug/588691 CD-ROM drives > should be working again, so I assume we can close this bug nowadays? Or > can you still reproduce it with the latest version of QEMU? > > **

[Qemu-devel] [PATCH] fix setting the FPSCR[FR] bit

2018-09-17 Thread John Arbuckle
. This patch actually implements the setting and unsetting of this bit. Signed-off-by: John Arbuckle --- fpu/softfloat.c | 12 ++-- include/fpu/softfloat-types.h | 1 + target/ppc/fpu_helper.c | 12 3 files changed, 23 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH v2] qemu-img.c: add help for each command

2018-09-15 Thread John Arbuckle
Add the ability for the user to display help for a certain command. Example: qemu-img create --help What is printed is all the options available to this command and an example. Signed-off-by: John Arbuckle --- v2 changes: Removed block of string comparison code for each command. Added

[Qemu-devel] [PATCH] qemu-common.h: update copyright date to 2018

2018-09-09 Thread John Arbuckle
Currently the copyright date is set to 2017. Update the date to say 2018. Signed-off-by: John Arbuckle --- include/qemu-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu-common.h b/include/qemu-common.h index 85f4749aef..ed60ba251d 100644 --- a/include

[Qemu-devel] [PATCH] qemu-img.c: add help for each command

2018-09-07 Thread John Arbuckle
Add the ability for the user to display help for a certain command. Example: qemu-img create --help What is printed is all the options available to this command and an example. Signed-off-by: John Arbuckle --- qemu-img.c | 767 + 1

[Qemu-devel] [Bug 588691] Re: QEMU is not correctly detecting host CDs

2018-09-03 Thread John Arbuckle
I use real CD-ROM disc in Mac OS and Windows guests on my Mac OS 10.12 host. I have to run QEMU in root mode using the sudo command in order to access the CD-ROM drive. So I know QEMU's support for using real optical media on Mac OS hosts does work. -- You received this bug notification because

[Qemu-devel] [PATCH] hw/input/ps2.c: fix erratic mouse behavior for Windows 3.1

2018-08-18 Thread John Arbuckle
4.0. Signed-off-by: John Arbuckle --- hw/input/ps2.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/input/ps2.c b/hw/input/ps2.c index fdfcadf9a1..bb9ebfa5a9 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@ -685,8 +685,17 @@ static int ps2_mouse_send_packet

[Qemu-devel] [Bug 1785485] [NEW] Mouse moves erratically when using scroll wheel on Windows NT 4, Windows 95, and Windows 3.1 guests

2018-08-05 Thread John Arbuckle
Public bug reported: QEMU version: 3.0.0 RC3 Guests: Windows NT 4.0, Windows 95, Windows 3.1 Program: When the user uses the scroll wheel, the mouse's movement becomes erratic. This is noticed immediately when the scroll wheel is used. Sometimes the problem can be fixed by moving the scroll

[Qemu-devel] [PATCH] qemu-img.c: Add examples section

2018-08-02 Thread John Arbuckle
Add an examples section to the help output. Signed-off-by: John Arbuckle --- qemu-img.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/qemu-img.c b/qemu-img.c index 1acddf693c..f77c82695d 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -199,6 +199,17 @@ static void QEMU_NORETURN

[Qemu-devel] [PATCH] qemu-img-cmds.hx: Add example usage for create command

2018-07-30 Thread John Arbuckle
Add an example on how to use the create command. I believe this will make qemu-img easier to use. Signed-off-by: John Arbuckle --- qemu-img-cmds.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-img-cmds.hx b/qemu-img-cmds.hx index 69758fb6e8..92f7437944 100644

[Qemu-devel] [PATCH] Add interactive mode to qemu-img command

2018-07-30 Thread John Arbuckle
Changes qemu-img so if the user runs it without any arguments, it will walk the user thru making an image file. Signed-off-by: John Arbuckle --- qemu-img.c | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index

[Qemu-devel] [PATCH v3] ui/cocoa.m: replace scrollingDeltaY with deltaY

2018-07-09 Thread John Arbuckle
10.5 and up. So we replace scrollingDeltaY with deltaY. We only check deltaY's value if it is not zero because zero means no scrolling took place. Signed-off-by: John Arbuckle --- v3 changes: - Added a comment explaining why we drop scrolling events in both the code and the patch comment. v2

[Qemu-devel] [PATCH v2] ui/cocoa.m: replace scrollingDeltaY with deltaY

2018-07-05 Thread John Arbuckle
10.5 and up. So we simply replace scrollingDeltaY with deltaY. Signed-off-by: John Arbuckle --- v2 changes: - Added a condition that drops scroll events that have a deltaY value of zero. ui/cocoa.m | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ui/cocoa.m b

[Qemu-devel] [RFC] fix setting FPSCR[FR] bit

2018-07-05 Thread John Arbuckle
the FPSCR[FR] bit. Feedback would be great. Signed-off-by: John Arbuckle --- fpu/softfloat.c | 6 +- include/fpu/softfloat-types.h | 1 + target/ppc/fpu_helper.c | 8 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c

[Qemu-devel] [PATCH] ui/cocoa.m: replace scrollingDeltaY with deltaY

2018-07-02 Thread John Arbuckle
OS 10.5 and up. So we simply replace scrollingDeltaY with deltaY. Signed-off-by: John Arbuckle --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 2991ed4f19..e34714081d 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -803,7 +803,7

[Qemu-devel] [PATCH v2] ui/cocoa.m: prevent stuck command key when going into full screen mode

2018-07-02 Thread John Arbuckle
this situation from happening, we simply drop the first command key event after the user has gone into full screen mode using Command-F. Signed-off-by: John Arbuckle --- v2 changes: Code changes now confined to the handleEvent: method. ui/cocoa.m | 14 +- 1 file changed, 13 insertions(+), 1

[Qemu-devel] [PATCH v2] fix fdiv instruction

2018-06-29 Thread John Arbuckle
-for-32-e3087633.html This document has the information on the fdiv. Page 133 has the information on what action is executed when a division by zero situation takes place. Signed-off-by: John Arbuckle --- v2 changes: - Added comment for computing sign bit. - Changed return value of helper_fdiv

[Qemu-devel] [PATCH] fpu_helper.c: fix setting FPSCR[FI] bit

2018-06-24 Thread John Arbuckle
be found. Signed-off-by: John Arbuckle --- target/ppc/fpu_helper.c | 8 1 file changed, 8 insertions(+) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index d31a933cbb..9c841864c8 100644 --- a/target/ppc/fpu_helper.c +++ b/target/ppc/fpu_helper.c @@ -274,6 +274,7

[Qemu-devel] [PATCH] fix fdiv instruction

2018-06-22 Thread John Arbuckle
the information on the fdiv. Page 133 has the information on what action is executed when a division by zero situation takes place. Signed-off-by: John Arbuckle --- target/ppc/fpu_helper.c| 16 target/ppc/translate/fp-impl.inc.c | 28 +++- 2 files

[Qemu-devel] [PATCH] ui/cocoa.m: prevent stuck command key when going into full screen mode

2018-06-18 Thread John Arbuckle
this situation from happening, we simply drop the first command key event after the user has gone into full screen mode using Command-F. Signed-off-by: John Arbuckle --- ui/cocoa.m | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 2991ed4

[Qemu-devel] [PATCH v2] fpu_helper.c: fix helper_fpscr_clrbit() function

2018-06-18 Thread John Arbuckle
he problems I was having with these bits. Signed-off-by: John Arbuckle --- v2 changes: - Removed the FPSCR_VX case because it is not a bit that can be set directly. - Replaced previous code with predefined macros fpscr_ix and fpscr_eex. target/ppc/fpu_helper.c | 28 1 fi

[Qemu-devel] [PATCH] fpu_helper.c: fix helper_fpscr_clrbit() function

2018-06-17 Thread John Arbuckle
Fix the helper_fpscr_clrbit() function so it correctly sets the FEX and VX bits. Signed-off-by: John Arbuckle --- target/ppc/fpu_helper.c | 57 + 1 file changed, 57 insertions(+) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c

[Qemu-devel] [PATCH] ui/cocoa.m: fix absolute mode

2018-06-08 Thread John Arbuckle
Fix the cocoa front-end to correctly be able to use absolute mode. Signed-off-by: John Arbuckle --- ui/cocoa.m | 32 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 2991ed4f19..dda99ad638 100644 --- a/ui/cocoa.m +++ b

[Qemu-devel] [PATCH v2] tcg-target.inc.c: Use byte form of xgetbv instruction

2018-06-04 Thread John Arbuckle
Signed-off-by: John Arbuckle --- v2 changes: - Fixed a spacing issue in the asm() function. tcg/i386/tcg-target.inc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c index 5357909fff..09141fa8e0 100644 --- a/tcg/i386

[Qemu-devel] [PATCH] tcg-target.inc.c: Use byte form of xgetbv instruction

2018-06-04 Thread John Arbuckle
The assembler in most versions of Mac OS X is pretty old and does not support the xgetbv instruction. To go around this problem the raw encoding of the instruction is used instead. Signed-off-by: John Arbuckle --- tcg/i386/tcg-target.inc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion

[Qemu-devel] [PATCH] ui/cocoa.m: Suppress NSFileHandlingPanelOKButton depreciation warning

2018-05-29 Thread John Arbuckle
OSX 10.13 deprecates the NSFileHandlingPanelOKButton constant, and would rather you use NSModalResponseOK, which was introduced in OS 10.9. Use the recommended new constant name, with a backward compatibility define if we're building on an older OSX. Signed-off-by: John Arbuckle --- ui/cocoa.m

[Qemu-devel] [Bug 1751494] Re: tcg-target.inc.c:3495:no such instruction: `xgetbv'

2018-02-28 Thread John Arbuckle
** Summary changed: - tag-target.inc.c:3495:no such instruction: `xgetbv' + tcg-target.inc.c:3495:no such instruction: `xgetbv' -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1751494 Title:

[Qemu-devel] [Bug 1751494] Re: tag-target.inc.c:3495:no such instruction: `xgetbv'

2018-02-28 Thread John Arbuckle
The exact commit that causes this problem is this: commit 770c2fc7bb70804ae9869995fd02dadd6d7656ac tcg/i386: Add vector operations -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1751494 Title:

[Qemu-devel] [Bug 1751494] [NEW] tag-target.inc.c:3495:no such instruction: `xgetbv'

2018-02-24 Thread John Arbuckle
Public bug reported: While building QEMU on Mac OS 10.6.8 I saw this error message: tag-target.inc.c:3495:no such instruction: `xgetbv' In the file tcg/i386/tcg-target.inc.c at line 3495 is where the issue is located. This is the problem code: asm ("xgetbv" : "=a" (xcrl), "=d" (xcrh) : "c" (0));

[Qemu-devel] [PATCH v8] ui/cocoa.m: Add ability for user to specify mouse ungrab key

2018-02-20 Thread John Arbuckle
-display cocoa,hotkey-grab=kp_5-kp_6 -display cocoa,hotkey-grab=kp_4-kp_5-kp_6 -display cocoa,hotkey-grab=ctrl-alt Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v8 changes: - Added a queue that keeps track of keys and their

[Qemu-devel] [PATCH v7] ui/cocoa.m: Add ability for user to specify mouse ungrab key

2018-02-16 Thread John Arbuckle
-display cocoa,hotkey-grab=kp_5-kp_6 -display cocoa,hotkey-grab=kp_4-kp_5-kp_6 -display cocoa,hotkey-grab=ctrl-alt Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v7 changes: - Prevent ungrab keys from being seen by guest. v6 c

[Qemu-devel] [PATCH v6] ui/cocoa.m: Add ability for user to specify mouse ungrab key

2018-02-03 Thread John Arbuckle
-display cocoa,hotkey-grab=kp_5-kp_6 -display cocoa,hotkey-grab=kp_4-kp_5-kp_6 -display cocoa,hotkey-grab=ctrl-alt Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v6 changes: - changed ungrab command-line option to -display cocoa,

[Qemu-devel] [PATCH v2] hw/audio/sb16.c: change dolog() to qemu_log_mask()

2018-02-01 Thread John Arbuckle
Changes all the occurrances of dolog() to qemu_log_mask(). Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v2 changes: Removed several replaces of dolog() to qemu_log_mask(). Added one error_setg() call. hw/audio/sb16.

[Qemu-devel] [PATCH] hw/audio/sb16.c: change dolog() to qemu_log_mask()

2018-02-01 Thread John Arbuckle
Changes all the occurrances of dolog() to qemu_log_mask(). Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- hw/audio/sb16.c | 105 1 file changed, 53 insertions(+), 52 deletions(-) diff --git a/hw/audio/sb16.c b/hw/audi

[Qemu-devel] [PATCH] hw/audio/sb16.c: Convert file to new logging API

2018-01-29 Thread John Arbuckle
Use the qemu_log_mask() function to log messages. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- hw/audio/sb16.c | 221 1 file changed, 112 insertions(+), 109 deletions(-) diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c

[Qemu-devel] [PATCH] Only print unknown command message in debug mode

2018-01-29 Thread John Arbuckle
After using QEMU with the sb16 sound card I would see all these messages about some numbered command not being understood. It became annoying after a while to always see this message, so this patch changes things so that the message is only printed when DEBUG is defined. Signed-off-by: John

Re: [Qemu-devel] [Bug 1737194] Windows NT 4.0 fails to boot from qcow2 installation

2018-01-26 Thread John Arbuckle
I have installed Windows 95 OSR 2.5 in QEMU using the qcow2 format. So far there hasn't been any major problems that prevent Windows from booting. I downloaded the ISO file from here: https://winworldpc.com/product/windows-95/osr-3 Used this floppy boot image to boot QEMU:

[Qemu-devel] [PATCH v5] cocoa.m: Add ability for user to specify mouse ungrab key

2018-01-26 Thread John Arbuckle
-ungrab ctrl-alt Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v5 changes: - Removed ungrab detection code from keydown event in handleEvent. - Removed console_ungrab_sequence_length(). - Removed ability to always use the default ctrl-alt-g ungrab key sequence. - Added ability to ac

Re: [Qemu-devel] [Bug 1737194] Re: Windows NT 4.0 fails to boot from qcow2 installation

2018-01-26 Thread John Arbuckle
> On Jan 26, 2018, at 9:51 AM, David Lindsay wrote: > > Hi John & others: > > (3 separate things.) > > 1: Image formats > > Regarding qcow, unfortunately there is no change if I use this format. > > - Windows 3.1 initially hung at "Starting MS-DOS..."; upon restart it >

Re: [Qemu-devel] [Bug 1737194] Re: Windows NT 4.0 fails to boot from qcow2 installation

2018-01-25 Thread John Arbuckle
> On Jan 25, 2018, at 11:16 AM, Peter Maydell <peter.mayd...@linaro.org> wrote: > > On 25 January 2018 at 15:58, John Arbuckle <programmingk...@gmail.com> wrote: >> I did try to build at commits 306ec6c3cece7004429c79c1ac93d49919f1f1cc >> and e689f7c668cbd9d08f33

Re: [Qemu-devel] [Bug 1737194] Re: Windows NT 4.0 fails to boot from qcow2 installation

2018-01-25 Thread John Arbuckle
> # WinNT 4 Terminal Server > > Most of the time, NTLDR will fire up normally. But every so often... > > SeaBIOS (version > rel-1.7.3-117-g31b8b4e-20131206_080705-nilsson.home.kraxel.org) > > Booting from Hard Disk... > A disk read error occurred. > Insert a system diskette and restart

Re: [Qemu-devel] [Bug 1737194] Re: Windows NT 4.0 fails to boot from qcow2 installation

2018-01-25 Thread John Arbuckle
; https://bugs.launchpad.net/qemu/+bug/1745312. > > That report contains information on how to lift out and build the > before-and-after QEMU commits that I think relate to this being broken. > John Arbuckle, perhaps you could run through that and see if you > continue to have issues

[Qemu-devel] [PATCH v2] cocoa.m: Fix scroll wheel support

2018-01-08 Thread John Arbuckle
When using a mouse's scroll wheel in a guest with the cocoa front-end, the mouse pointer moves up and down instead of scrolling the window. This patch fixes this problem. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- ui/cocoa.m | 27 +++ 1 file chang

[Qemu-devel] [PATCH v2] Update dtc to fix compilation problem on Mac OS 10.6

2018-01-04 Thread John Arbuckle
Currently QEMU does not build on Mac OS 10.6 because of a missing patch in the dtc subproject. Updating dtc to make the patch available fixes this problem. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v2 changes: Updated the commit to point to version 1.4.6. dtc | 2 +-

[Qemu-devel] [PATCH] cocoa.m: Fix scroll wheel support

2017-12-30 Thread John Arbuckle
When using a mouse's scroll wheel in a guest with the cocoa front-end, the mouse pointer moves up and down instead of scrolling the window. This patch fixes this problem. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- ui/cocoa.m | 17 - 1 file chang

[Qemu-devel] [PATCH] Update dtc to fix compilation problem on Mac OS 10.6

2017-12-27 Thread John Arbuckle
Currently QEMU does not build on Mac OS 10.6 because of a missing patch in the dtc subproject. Updating dtc to make the patch available fixes this problem. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- dtc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[Qemu-devel] [PATCH v4] Add ability for user to specify mouse ungrab key

2017-12-26 Thread John Arbuckle
-ungrab shift-ctrl -ungrab ctrl-x -ungrab pgup-pgdn -ungrab kp_5-kp_6 -ungrab kp_4-kp_5-kp_6 Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v4 changes: - Removed initialization code for key_value

[Qemu-devel] [PATCH v3] Add ability for user to specify mouse ungrab key

2017-12-26 Thread John Arbuckle
-ungrab shift-ctrl -ungrab ctrl-x -ungrab pgup-pgdn -ungrab kp_5-kp_6 -ungrab kp_4-kp_5-kp_6 Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v3 changes: - Added the ability for any "sendkey sup

[Qemu-devel] [PATCH v2] Add ability for user to specify mouse ungrab key

2017-12-14 Thread John Arbuckle
and are usually available, they will be the ones the user can pick to be the ungrab key. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v2 changes: - Removed the "int i" code from the for loops. qemu-options.hx | 2 ++ ui/cocoa.m | 20 ++-- vl.c

[Qemu-devel] [PATCH] Add ability for user to specify mouse ungrab key

2017-12-10 Thread John Arbuckle
and are usually available, they will be the ones the user can pick to be the ungrab key. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- qemu-options.hx | 2 ++ ui/cocoa.m | 20 -- vl.c| 85 - 3

Re: [Qemu-devel] [Bug 1737194] Re: Windows NT 4.0 fails to boot from qcow2 installation

2017-12-08 Thread John Arbuckle
> On Dec 8, 2017, at 1:41 PM, John Snow <1737...@bugs.launchpad.net> wrote: > > If you do two identical installs with qcow2 and raw, do you see any > differences with qemu-img compare afterwards that might indicate what > could possibly have gone wrong? I think what you want is for me to compare

[Qemu-devel] [Bug 1737194] [NEW] Windows NT 4.0 fails to boot from qcow2 installation

2017-12-08 Thread John Arbuckle
Public bug reported: Windows NT 4.0 will not boot from an installation more than once if installed in a qcow2 image file. A quick fix to this problem is to use the qcow format instead. Steps to reproduce this issue: Create the image file: qemu-img create -f qcow2 winnt4.qcow2 1G Boot from a

[Qemu-devel] [PATCH v3 1/2] ui/cocoa.m: move ungrab to ctrl-alt-g

2017-11-02 Thread John Arbuckle
Currently the cocoa user interface relys on the user pushing control-alt to ungrab the mouse. This is patch changes the key combination to control-alt-g to be in line with the GTK user interface. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v3 changes - Code is now ke

[Qemu-devel] [PATCH v3 2/2] ui/cocoa.m: send ctrl-alt key combinations to guest if not used by QEMU

2017-11-02 Thread John Arbuckle
Send control-alt key combinations to the guest if not used by the user interface. Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- v3 changes: - Code is now keyboard layout aware v2 changes: - changed logic to use existing if case ui/cocoa.

  1   2   >