2,601 questions
0
votes
0
answers
22
views
"unresolved import <my crates in project>" in Rust. Suspected to be caused by circular dependencies, but still reported an error after modification [duplicate]
I am using Rust to write a RiscV instruction set simulator, but it failed during the implementation of instruction decoding and execution. Because I encountered an issue while importing my inst and ...
0
votes
0
answers
35
views
How to properly quit QEMU using Java and telnet
I've got QEMU process running on local machine and using telnet monitor. I'd like to be able to connect to QEMU via telnet (from inside java application) and send "quit" command, but it ...
0
votes
0
answers
7
views
Does Mem stats in htop includes allocated memory for Virtual machines?
I have several Virtual machines running on my ubuntu machine. These virtual machines are created using cockpit interface. The question is "When I see output of htop command, the "Mem" ...
0
votes
0
answers
10
views
Is it feasible to redirect the access to a QEMU virtual PCIe device to a remote PCIe device over TCP/IP network without requiring auxiliary hardware? [closed]
Is it feasible to redirect the access to a QEMU PCIe virtual device to a remote PCIe device over a TCP/IP network without requiring auxiliary hardware?
In KVM and Xen hypervisors, PCI passthrough is ...
1
vote
0
answers
7
views
Printf inside the qemu device typeinfo file(similar to edu.c), where can I find the output?
qemu version: 9.0.3, qemu-system-x86_64
device type: pcie device, edit based on the edu.c
print function: printf
qemu configuration:
./configure --prefix=$PWD/../qemu_release --target-list=x86_64-...
0
votes
0
answers
48
views
Implementing SPI with Rust and QEMU
For learning purposes, I am trying to build my own HAL in Rust for the Atmega328P.
Context
So far, I managed the USART part. I created a code that sends back via USART the data it receives, and ...
0
votes
0
answers
24
views
How to resolve missing library issues when using qasan with a 32-bit ARM web service binary in AFL++?
I am trying to use AFL++ to fuzz a 32-bit ARM binary program with the qasan tool. Unfortunately, the binary I am working with is a web service: /usr/sbin/upnpd. To successfully run it, I have to ...
0
votes
0
answers
33
views
libvirt migration failed : unknown protocol 'rbd'
I've been using KVM/Qemu/libvirt/DRBD/Ceph for years but I've just had a strange issue when migrating a VM that has a Ceph RBD volume attached.
I've run this command to migrate the VM :
# virsh ...
0
votes
0
answers
21
views
Using serial port on android qemu
I'm trying to test the serial port functionality on android studio's emulator. What I'm currently doing:
On host side
I created a pair of virtual ports com3 and com4 using com0com
I tested them ...
2
votes
2
answers
55
views
How to allocate more than 4GB for android emulators?
I have an Android emulator setup in my CI server. I notice that when I boot it up with more than 4GB of RAM eg.
emulator -avd myEmulator -m 6144
, a warning message appears:
pc_memory_init: above 4g ...
0
votes
1
answer
54
views
How to specify SME Vector Length when running QEMU for ARMv9 in user mode on Ubuntu 20.04? [closed]
I am currently working on emulating an ARMv9 architecture with SME (Scalable Matrix Extension) using QEMU on an x86 host running Ubuntu 20.04. I am using the qemu-aarch64 binary to run my tests in ...
0
votes
3
answers
52
views
Why is Flutter Android emulator screen only visible in the task bar, doesn't appear on the screen
[enter image description here][1]I tried to build Flutter applications using my Android emulator setup from the Android command-line tools. However, when I try to run it, the emulator only shows up ...
0
votes
0
answers
23
views
x86_64 Linear-Address Translation wtih 4-Level paging [duplicate]
As I understand, the 4-level paging uses only the 48 least significant bits.
So, regardless of the other bits, the address will point to the same physical address, correct?
For example:
...
0
votes
0
answers
30
views
On a MacOS M1 with Packer, how to access a QEMU VM with an IP address in the same range as on the Macbook M1?
Does anybody have an example how to build a Linux VM with Packer with QEMU installed on the Macbook M1 and access it from the Macbook itself?
I can build the VM, but I can't ping the Internet from the ...
0
votes
1
answer
33
views
When building qemu through yocto error: ../target/hexagon/meson.build:29:16: ERROR: No build machine compiler for 'target/hexagon/gen_semantics.c'
I'm trying to enable support for am62xx-evm machine through yocto. here is my recipe:
SUMMARY = "QEMU for aarch64 architecture"
DESCRIPTION = "QEMU for emulating the aarch64 ...
0
votes
0
answers
20
views
Testpmd: pps (packets per second) hardly changes and its value is very low
I use testpmd in QEMU to test the VF performance of CX6 NIC (100Gbps) and run pktgen on another host to send data to it, but the pps measured by testpmd always maintains a relatively low and fixed ...
1
vote
0
answers
37
views
Using PEBS/PMU in QEMU to sample exact addr of memory operation
I'm trying to use PEBS/PMU in QEMU to sample exact addr of memory operation, I met a similar problem which is mentioned 3 years ago in this link and I quote the text part below.
I tried to use ...
1
vote
0
answers
50
views
QEMU rebooting instead of halting
When i start QEMU it executes my code, but when it finishes it reboots and restarts instead of halting. I am using nasm and QEMU x86_64
Here is a gif of the problem
I also tried using -nographic but ...
0
votes
1
answer
73
views
Does legacy x86 (before Intel-VT and AMD-SVM) supports Type 1 Hypervisor? [closed]
I am familiar with the dynamic translation and the trap-and-emulate (Type1 Hypervisor) concepts. What makes me confused is that many articles usually combine dynamic translation and type 1 hypervisor, ...
1
vote
0
answers
30
views
Why provisioning script is not making file creation/edition to persist
I'm using packer to create a qcow2 disk image from scratch with a base alpine iso using the qemu builder and provisioning it.
The boot_command executes setup-alpine command from alpine to set network ...
1
vote
1
answer
110
views
Is there a way to make Android Emulator use non-bundled qemu?
$ emulator -avd hd2
INFO | Android emulator version 35.2.10.0 (build_id 12414864) (CL:N/A)
INFO | Graphics backend: gfxstream
PANIC: CPU Architecture 'arm' is not supported by the QEMU2 emulator,...
0
votes
1
answer
58
views
Cant load Udp4Dxe.efi in UEFI Shell when starting OVMF firmware using QEMU
I want to use UEFI's network functionality to test my UNDI driver, but error "Failed to locate EFI_RNG_PROTOCOL: Not Found" occured when loading Udp4Dxe.EFI in UEFI Shell using “load ...
1
vote
0
answers
77
views
Why is the BIOS designed to be near 0xFFFFF instead of 0xF0000?
I am currently doing an experiment for S6.828 and I am facing a problem.
+------------------+ <- 0xFFFFFFFF (4GB)
| 32-bit |
| memory mapped |
| devices |
| |...
0
votes
1
answer
56
views
fallocate not defined in QEMU 7.2.14 trying to compile on windows using mingw
Trying to compile QEMU 7.2.14 so I can use HAXM virtualizer to accelerate it (not using hyperv) and I'm getting an error saying that the fallocate function is not found in file qemu/softmmu/physmem.c ...
0
votes
2
answers
42
views
Source code of Linux kernel not found when using GDB -tui?
I am booting a Linux kernel in Qemu using an Ubuntu machine.
I can successfully set breakpoints on certain functions, like "start_kernel".
However, when enabling the -tui option for GDB, I ...
0
votes
0
answers
47
views
why I get segmentation fault when using qemu-riscv64 to run openblas test?
I'm doing cross compile(host: Ubuntu 20.04.6 LTS, x86_64; target: riscv64gcv) like the guthub action for testing target riscv64_zvl128b.
My code is on commit 8483a71 which is same with the CI test; my ...
0
votes
1
answer
34
views
GDB hangs after continuing from "start_kernel" breakpoint?
I am trying to familiarize myself with the Linux kernel source code. So, I figured I would setup a Qemu machine that boots the kernel (using debug settings) so that I can interact with the kernel ...
1
vote
0
answers
98
views
How do you compile a C program to the same format that `nasm -f bin` produces?
I have looked around for some examples of simple C programs (that, by necessity, don't use the heap or standard library) and instructions on how to compile them so that they can be run under qemu, but ...
0
votes
0
answers
85
views
Custom bootloader doesn't load second sector while using FAT12
I am learning how an operating system works. So I started by writing a bootloader. Everything was working fine until I tried to format my image containing my stages 1 and 2 in FAT12.
Currently the ...
0
votes
1
answer
70
views
qemu-system-mips: Available memory much smaller than configured
I'm running a Debian Buster installation on an Ubuntu 24.04 host, using qemu-system-mips.
The machine is started using
qemu-system-mips -M malta \
-m size=2G -hda hda.img \
-kernel vmlinux-4.19.0-21-...
0
votes
0
answers
66
views
Emulate battery device in yocto QEMU x86-64
I am trying to emulate battery device in the QEMU x86-64. I am building QEMU images using Yocto reference distribution poky, I am building core-image-sato image for the qemux86-64 machine. My goal is ...
0
votes
0
answers
57
views
Hide the fact of using android emulation
I have the following code that identifies whether an android device is emulated, I need to use qemu to try to cheat this code, I found several lines in it related to the detection of QEMU specifically,...
2
votes
0
answers
71
views
How to work with audio in my os i386 (for example, sound blaster 16)
I need a way to play sound at a certain frequency for a while in C without libraries (the most important thing). How can this be implemented, for example, on the sound blaster 16 audio card (AC97 is ...
0
votes
0
answers
48
views
microfactory_Linux: cannot execute binary file: exe Format not valid
I'm trying to boot up Android cuttlefish on the Raspi OS,based on Debian Bookworm emulated with qemu-system-aarch64 on top of Ubuntu 24.04 X64 bit. The qemu parameters that I've used are the following ...
1
vote
1
answer
93
views
Where to initialize lock to be used for system call in xv6?
I've implemented a new system call in xv6 that tracks the number of 'read' calls since the OS boot. The system call is almost complete, but I still need to properly implement a lock to protect the ...
0
votes
1
answer
37
views
QEMU/virt64 vGIC dist and CPU interface addresses
I'm working with QEMU/virt64 (armv8) and I've a question related to an IRQ injection from my hypervisor running in EL2 mode.
First, is it correct that the vGIC distributor address is 0x08000000, i.e. ...
1
vote
0
answers
52
views
Filesystem in arm os
I want to add filesystem in drive to my tiny arm os. I have bootloader:
.global _main
_main:
ldr x30, =stack_top
mov sp, x30
bl notmain
b .
This bootloader run notmain function from ...
1
vote
1
answer
154
views
Encountering Illegal Instruction Error When Using QEMU to Simulate ARMv9 SME Program
I am trying to use QEMU in user mode to simulate an ARMv9 SME program, but I encounter the following error during execution:
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
...
2
votes
0
answers
94
views
setup buffer I/O in C for ARM OS
I want ot make tiny OS. With buffer, because when i tryed to realise commands i have troubles with buffer. Here full C code:
#include <stdint.h>
#define UART0_BASE 0x09000000
#define UART0_DR (...
0
votes
0
answers
433
views
gtk initialization failed when running qemu .iso file
I am trying to run an OS on Qemu with
qemu-system-x86_64 -M q35 -m 2g -cdrom astral.iso
and getting the following error:
gtk initialization failed
How can I resolve this issue?
0
votes
0
answers
57
views
U-boot build error on ubuntu missing evp.h file or directory
I am getting an ssl error while compiling u-boot on Ubuntu.
In file included from tools/imagetool.h:24,
from tools/aisimage.c:7:
include/image.h:1166:12: fatal error: openssl/evp.h: ...
0
votes
1
answer
93
views
Debugging Linux kernel under QEMU with GDB: breakpoints are not hit
I am using Ubuntu 24.04 system under qemu-system-aarch64 +gdb-multiarch to debug the kernel. But setting breakpoint doesn't make it to stop.
System information:
Ubuntu version: 22.04
Debug kernel ...
-1
votes
1
answer
97
views
arm aarch64 keyboard setting up for qemu emulator
Wanna add keyboard input for qemu emulator. I have C file for UART logic:
void uart_puts(const char *str);
void uart_putc(char c);
void notmain(void) {
volatile char *uart = (char *)0x1c090000; /...
0
votes
2
answers
675
views
Android Emulator issues in new Koala Feature Drop 2024.1.2 versions - The emulator process has terminated
After updating to Android Studio Koala Feature Drop 2024.1.2, when I try to run an emulator, it gets killed with this error: Nexus S API 22 : The emulator process for AVD Nexus_S_API_22 has ...
0
votes
0
answers
48
views
Bootloader won't load kernel into RAM
I am currently trying to make a very simple 16-bit x86 OS, however, my bootloader won't load the kernel into RAM. I already found the line in which the error seems to happen, but I don't know how to ...
0
votes
0
answers
26
views
qemu system -86 _64 error in Android Studio
[Imageenter image description here of Error](https://i.sstatic.net/6HIRHssB.png)
What i can do for this error while i open an emulator on android studio.
I Reinstall the application and other try but ...
-1
votes
1
answer
63
views
arm qemu visualisation troubles
Want to make tiny os in arm architecture.
I have asm file:
.globl _start
_start:
mov sp,#0x20000
bl kernel
hang:
b hang
.globl PUT32
PUT32:
str r1,[r0]
bx lr
and notmain.c
void ...
1
vote
1
answer
102
views
Arm bootloader and kernel visualisation error
I want make tiny OS for ARM system. I have this bootloader:
.global _start
.text
_start:
/* Set up the stack */
ldr sp, =stack_top
/* Call the kernel entry point */
bl kernel_entry
...
1
vote
0
answers
211
views
Trying to bring up Android cuttlefish on my Jetson nano
I'm trying an experiment that no one tried yet : trying to booting up Android cuttlefish on my Jetson nano 4 GB,where I have installed Ubuntu 22.04 and the kernel 4.9. At the beginning the default ...
0
votes
1
answer
55
views
No FDT bootparam in aarch64 virt
I run
qemu-system-aarch64 -s -S \
-machine virt,gic_version=2,virtualization=on,secure=off \
-cpu cortex-a72 \
-m 2G \
-kernel mykernel.elf \
\
-chardev stdio,mux=on,id=...