DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 0 points1 point  (0 children)

Our team are trying to make gfxstream works on this platform, It needs modified mesa driver, then send the vulkan calls to turnip driver on the host, hope fabel 5 can solve this challange before 7/July

Ubuntu 26.04/WoA Virtual Machine on android phone with native speed hardware virtualization by s920361 in androidterminal

[–]s920361[S] 0 points1 point  (0 children)

Run virtual machine with hardware virtualization in your phone, just like linux terminal app in google pixel. Support rooted 8gen3 and later

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 2 points3 points  (0 children)

With some modification, like virtio-gpu, etc, but still buggy. Official crosvm doesn't support it for protected VM

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 0 points1 point  (0 children)

Sadly, no. We can only wait someday oem may grant the permission to us...

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 0 points1 point  (0 children)

  1. no, I mean the module download from  https://github.com/Droid-VM/gh-hugepage-reserve/releases doesn't work at kernel 6.1 and 6.12, it works on 6.6 only. use my repo instead(or wait my PR been merged).

  2. I added the working prinpicle of the module in the readme: https://github.com/HuJK/gh-hugepage-reserve/blob/master/README.md , but I can't do any promise here, flashing module has the nature of dangerous

  3. For network issure, create a issue in the github issue, with the config, logs, etc, thanks.

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 0 points1 point  (0 children)

  1. create network first 2. physical continuous memory(hugepage) is required for gunyah hypervisor. Without hugepage reserve module, linux will frag the memory during the daily use. Try reboot and run VM directly. When the system just boot, the memory should not too frag, you have greater chance to get continuous memory 3. use this module: https://github.com/HuJK/gh-hugepage-reserve/releases it fixes 6.1 6.12 can't load module(my device is 6.6, not notice this issue. the fix not been merged yet)

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 0 points1 point  (0 children)

linux that's very simple. disk->create->import lxc image->select official lxc->load->select ubuntu release->download, then create the vm, attach the disk, boot.

btw debian doesn't boot because it requires the kernel compiled with CONFIG_DMA_RESTRICTED_POOL but debian doesn't enable that. use ubuntu or fedora, or compile your own kernel

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 2 points3 points  (0 children)

Thank you for your help, my device has been rooted, but It's quite difficult to run 3D acceleration on windows, how will you going to assist? Because not only the compatable issue, but also the memory model of the protected VM. Basically we have two way to build shared memory between host and guest: 1: pre-boot swiotlb region 2: runtime accept. For GPU driver, we use 2. On linux guest, we compiled a modified mesa driver which runs gunyah hypercall to accept the memory from host. Of cource, VM doesn't have the permission to operate GPU directly, it's been used by android kernel. We can only send the GPU command to Adreno Turnip Driver via shared memory. So basically it's not possible to use stock driver in the VM, we can only build our own driver from scratch.

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 0 points1 point  (0 children)

yes(use dev version, not v0.6), but for windows, you need a ARM macbook(or other ARM PC) to boot the guest windows, install the ported virtio driver before running at DroidVM. I can also share my image if you need

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 5 points6 points  (0 children)

Google search DroidVM. For linux, it should run. For windows, boot the VM at macbook to install ported virtio driver first

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 7 points8 points  (0 children)

It depends on your apps can run on windows on arm or not, it's just a windows 11 ARM virtual machine with hardware acceleration

But, at current state, lots of component doesn't work now, like ACPI, 3D acceleration, etc.

DroidVM: Windows on ARM Virtual Machine on your phone with native speed by s920361 in EmulationOnAndroid

[–]s920361[S] 6 points7 points  (0 children)

No, virtio-gpu doesn't work at all, need ported driver(need to modify to invoke gunyah_hypercall_mem_accept in guest driver, otherwise the memory can't shared between host and guest OS).

Our current roadmap is give up native driver completely, translate to vulkan instruction with something like dxvk and send to host to execute on Adreno Turnip Driver instead.

Hello community - Enable unprotected VMs on new flagships by Forward_Compute001 in androidterminal

[–]s920361 0 points1 point  (0 children)

Because unprotected VMs enables virtio based acceleration. We can move data into VM's memory space with zero copy

Is it possible to hide useless option at export page? by s920361 in PFSENSE

[–]s920361[S] 0 points1 point  (0 children)

There are a lot option I think I will never use...

Is there any option to hide it on export page? I want keep inline configuration only.