is it possbile to develop emulation-virtualization hybrid?

Discussion of development and patch submission.
Post Reply
handlingcfg
Posts: 7
Joined: Tue 14 Jun, 2022 6:16 am

is it possbile to develop emulation-virtualization hybrid?

Post by handlingcfg »

hi, i wonder if is technically possible to write system that uses partially virtualization and switchable to emulation on demand for pcem
maybe basic operating system layer that could do this,let me explain it

we install control layer on pcem, we install guest os inside control layer, like vm inside vm,

when we want high speeds control layer sends instructions directly to the hardware via virtualization,
when we want to control speed for cpu, control layer spams hardware with useless codes with specific ratio to decrease performance to the level we want,
also if there is a instruction support issuses, maybe control layer could sends basic instructions directly to hardware and emulates other lacking instructions like MMX or 3Dnow.
Benedikt
Posts: 6
Joined: Sat 31 Oct, 2020 4:29 pm

Re: is it possbile to develop emulation-virtualization hybrid?

Post by Benedikt »

Spamming the CPU with useless instructions sounds like a profoundly silly idea if you ask me.
The proper way to slow down a virtual machine is to simply give it less CPU time.
VirtualBox, for instance, allows you to limit CPU utilization by a VM to a certain percentage, which can be very helpful for CPU-hogging games from the 90s.
Emulating unsupported instructions merely requires a trap handler.
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: is it possbile to develop emulation-virtualization hybrid?

Post by leilei »

Virtualizing CPUs through brings unpredictable variables from hardware that can be out of reach and hard to debug. Also that's like the thousandth time VM'ing was suggested...
User avatar
Arjen42
Posts: 136
Joined: Fri 11 Jun, 2021 3:15 pm

Re: is it possbile to develop emulation-virtualization hybrid?

Post by Arjen42 »

Maybe it would be good idea to create PCem faq or something similar sticky topic in which these questions are explained.
tk421
Posts: 156
Joined: Sat 18 Jun, 2016 6:57 am

Re: is it possbile to develop emulation-virtualization hybrid?

Post by tk421 »

I do not believe this can be done at present, but given the big differences between virtualization and emulation software, I would think there is no need for such a hybrid program to be developed.

PCem is radically different from virtualization solutions like VMWare, VirtualBox, Microsoft Virtual PC 2007 and other programs that fulfill virtualization needs. Emulation software like PCem emulates specific computer hardware, which makes it so valuable compared to VMWare, among others.

It all depends on which programs you are trying to run in a VM. Most XP-related tasks are best left to either your modern PC itself, or virtualization software like the ones mentioned above. Virtual PC 2007 is not worth the effort on Windows 10 as it is too old for a modern PC. Both VMWare and VirtualBox have their advantages depending on the program you are trying to run on XP or newer versions of Windows or Linux.
User avatar
MichaelJManley
Posts: 54
Joined: Fri 17 Dec, 2021 9:42 pm

Re: is it possbile to develop emulation-virtualization hybrid?

Post by MichaelJManley »

Yes, this is something that comes up over and over and over.

PCem will NEVER be a virtualiser. The whole point of PCem is to emulate the hardware and basically give you a 1 to 1 copy of older hardware, even to the bios/chipset level.

Emulation != Virtualization.
Post Reply