Skip to content
Advertisement

Tag: qemu

Can I use ioread32_rep(addr, buf, 2) to replace ioread64()?

I am currently going through Linux Device Drivers book and found the functions for reading from I/O memory: To read from I/O memory, use one of the following: unsigned int ioread8(void *addr); unsigned int ioread16(void *addr); unsigned int ioread32(void *addr); If you must read or write a series of values to a given I/O memory address, you can use the

qom-type is missing when running qemu/kvm

I’m trying to set up QEMU/KVM and faced the following issue: So I tried to specify this as a format as Searching for qom-type at QEMU manual page didn’t give any results. How to specify the correct qom-type for that case? Answer “-object format=raw” says “create a QOM object, whose type I have not specified, and then give it the

Why does the Qemu run differ from the native run?

What did i do? I ran qemu-x86_64 -singlestep -d nochain,cpu ./dummy to dump all the registers of a dummy program after each instruction and used grep to save all the RIP values into a text file (qemu_rip_dump.txt). I then singlestepped the dummy program with ptrace and dumped the RIP values after each instruction into another textfile (ptrace_rip_dump.txt). I then compared

My newly compiled kernel loses Networking in qemu

I compiled a kernel from source : make defconfig make kvmconfig make -j 4 After this , i use the resulting bzImage for my qemu command: qemu-system-x86_64 -hda debian.img -kernel bzImage -append “root=/dev/sda console=ttyS0” -nographic -m 4096 -smp 2 –enable-kvm -net user,hostfwd=tcp::10021-:22 -net nic It mounts, and I get a shell and everything, but it loses connectivity. In qemu, it

How to emulate ARM unaligned memory access exceptions?

I’m writing a cross-platform application which works on x86 machines, but crashes with “Bus error” on the actual ARM hardware (Raspberypi 2) … … but runs without any problems in Qemu. I run this command to enable SIGBUS signal and notification in the kernel running under Qemu, but it doesn’t seem to have any effect: echo 5 > /proc/cpu/alignment [2]

Kernel debugging – gdb step jumps out of function

I’m trying to do understand the kernel network stack for a security research for my university. That’s why I try to debug the linux kernel. So far I’m doing quite well but I ran in a problem when trying to use qemu and gdb for debugging. The problem is as follows: I boot my linux system: make boot And connect

How to run Linux on a QEMU ARM Versatile machine?

I’m trying to run linux on qemu, especially the versatile version. I downloaded qemu and linux from github. (qemu : https://github.com/qemu/qemu.git, linux : https://github.com/torvalds/linux.git) I think these two repositorys are the main project of them. Anyway, I compiled linux with 2 steps. make ARCH=arm versatile_defconfig make all ARCH=arm CROSS_COMPILE=arm-none-eabi- Also compiled qemu with 3 steps. ./configure make sudo make install

Advertisement