Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

Running Windows on the new M1 Chip?

jido

macrumors regular
Oct 11, 2010
177
21
I had a look at several monitors. I didn't see any platform-specific code but it could be well-hidden in macros of subroutines. I just had a look at a few areas and didn't know my way around.
No surprise, it is not easy to grok a codebase this large.

Where did you see "monitors"?

There are #ifdefs for arm64 code like that:
C:
#if __arm__ || __arm64__
        if (maxPhys >= (mach_vm_address_t)(gPhysBase + gPhysSize))
        {
            maxPhys = 0;
        }
        else
#endif
 

pshufd

macrumors 68030
Oct 24, 2013
2,788
8,500
New Hampshire
No surprise, it is not easy to grok a codebase this large.

Where did you see "monitors"?

There are #ifdefs for arm64 code like that:
#if __arm__ || __arm64__
if (maxPhys >= (mach_vm_address_t)(gPhysBase + gPhysSize))
{
maxPhys = 0;
}
else
#endif

Should have been modules.

I worked on Firefox and Thunderbird and those are big code bases.

I worked on code bases of 10 million lines in the 80s and 90s and probably 80 million in the 00s. Finding your way around can take a lot of effort unless you have someone to show you around.

The firefox codebase tends to be messier because you have multiple operating systems per architecture.
 

ww1971

macrumors regular
Jul 15, 2011
100
25
One of the problems with running windows on the M1, it's not just getting windows to work, but they also need to create all the drivers for the graphics and other subsystems, under x86 Mac apple provided all those drivers.

i guess people are in for a long wait getting the drivers to make windows work. The drivers might never come
 

Nate Spencer

macrumors member
Jun 5, 2015
36
16
can I see any pictures of windows working in an emulator under m1?
Here is a copy of Win 7 running under straight qemu under Rosetta. The UTM image of 8.1 is sitting on the NAS. It isn't worth my time using for now. I figured I'd save the test in case they get qemu to use more than 1 host cpu core.
 

Attachments

  • Screen Shot 2020-11-22 at 3.35.34 PM.png
    Screen Shot 2020-11-22 at 3.35.34 PM.png
    1.2 MB · Views: 19

ww1971

macrumors regular
Jul 15, 2011
100
25
Here is a copy of Win 7 running under straight qemu under Rosetta. The UTM image of 8.1 is sitting on the NAS. It isn't worth my time using for now. I figured I'd save the test in case they get qemu to use more than 1 host cpu core.

thanks. Would the drivers make the windows run faster? I’m surprised the qemu managed to get windows to work under m1, but i reckon it will be very slow.
 
  • Like
Reactions: Nate Spencer

Nate Spencer

macrumors member
Jun 5, 2015
36
16
thanks. Would the drivers make the windows run faster? I’m surprised the qemu managed to get windows to work under m1, but i reckon it will be very slow.
Possibly Drivers would help. Win7 was from QEMU/KVM setup has most of those. The key issue UTM helps it has some JIT translation optimizations also it is ARM native QEMU. Windows was much better on it. Still super painful. The keys observation is the qemu process no matter what uses more or less one core. So no only is it slow. I can't spread it as a 4 core VM on 4 cores of hte host which would help a lot. You tell qemu to do smp and 4 cpus or cores. You just divided them on one m1 core. Ubuntu was slow booting too. Unfortunately I have not tried a new setup. Maybe a Lubuntu might be ok.

The screenshot there was terrible on performance. Like 8 min to login/desktop slow. qemu for x86-64 on rosetta then emulating x86-64. My solution was to move my 2 VMs win8.1 and Ubuntu onto a VMWare workstation player on my HP probook Ryzen. I just occasionally use them esp. since going to mac Quickbooks and Moneyspire. I did it to see if it would work and someone posted the link to UTM and I tried it.

Think about the guy who on youtube installed Windows 8 or 10 on a Cyrix MII probably close to the same experience. For the record they can probably get us to something like VirtualPC PPC era but qemu is more for dev testing of platforms than performance emulation.

edit: Sorry Windows 7
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.