qemu

Emulatin Big Endian ARM system with QEMU

╄→гoц情女王★ 提交于 2020-01-15 07:11:48
问题 Is it possible to compile some Linux Kernel and run it over QEMU, emulating some Big Endian ARM processor? If QEMU is not capable of that, I'd love to hear about other system emulators than can. My basic goal is to run and debug dedicated Big Endian ELFs in as much as possible native environment. Every close solution or idea would help! 回答1: QEMU has support for big-endian ARM CPUs, but it does not currently have support for emulation of any specific machines (boards) which have big-endian

qemu kvm: how to get permformance monitoring interrupt?

感情迁移 提交于 2020-01-14 14:17:31
问题 I write some function in my OS kernel to issue the performance monitoring interrupt (PMI) on instructions counter overflow. It works well on my machine (Intel core i5). But when I run it on qemu using qemu-system-x86_64 -enable-kvm -cpu host -m 256 -serial mon:stdio -cdrom var/run/hypervisor.iso the interrupt does never fire. Is there anything I am missing? Does it require any special configuration to get the PMI fired on qemu? I recall that instruction counting works well in qemu. msr

qemu kvm: how to get permformance monitoring interrupt?

北慕城南 提交于 2020-01-14 14:16:32
问题 I write some function in my OS kernel to issue the performance monitoring interrupt (PMI) on instructions counter overflow. It works well on my machine (Intel core i5). But when I run it on qemu using qemu-system-x86_64 -enable-kvm -cpu host -m 256 -serial mon:stdio -cdrom var/run/hypervisor.iso the interrupt does never fire. Is there anything I am missing? Does it require any special configuration to get the PMI fired on qemu? I recall that instruction counting works well in qemu. msr

x86 PIC, is it correct for QEMU to raise interrupts on all CPUs?

不想你离开。 提交于 2020-01-14 09:51:51
问题 I recently had to work around a proprietary OS issue with the x86 PIC where the OS expected timer interrupts ONLY on CPU0. I enabled the IO-APIC to get around this and did CPU steering so the interrupts went only to CPU0. Problem solved. I was told that our hardware is broken to do such a thing. i.e. raise timer interrupts on all CPUs when only a PIC is in use. The 'hardware' in question is QEMU/KVM. Is QEMU/KVM at fault here ? Is the OS making an invalid assumption ? My suspicion is that

How to use QEMU for learning ARM Linux kernel development?

送分小仙女□ 提交于 2020-01-13 11:10:10
问题 I want to learn it like developing some device driver etc and use QEMU for this because i have no hardware board for ARM like beagle board. What you guys suggest? Can i use Qemu simulator to learn Linux kernel on ARM targets? or any other option i should try ? 回答1: It depends on what you want to learn: hardware or software. If you really want to experiment with the different GPIO output to implement things like servo motor control, LED light blinking and display, a cheap board (eg, Raspberry

Run arm docker image on X86 through (Docker hub image)/multiarch/qemu-user-static

非 Y 不嫁゛ 提交于 2020-01-09 13:47:04
jhula@ShSwDev2:~/local/edgex/test-linux-docker-lake/myhello$ docker run --rm --privileged multiarch/qemu-user-static:register --reset Unable to find image 'multiarch/qemu-user-static:register' locally register: Pulling from multiarch/qemu-user-static bdbbaa22dec6: Pull complete 42399a41a764: Pull complete ed8a5179ae11: Pull complete 1ec39da9c97d: Pull complete Digest: sha256:7502ce31890ab5da0ab6e5e5edc1e2563caa45da1c5d76aaf7dc4252aea926dc Status: Downloaded newer image for multiarch/qemu-user-static:register Setting /usr/bin/qemu-alpha-static as binfmt interpreter for alpha Setting /usr/bin

[转]qemu安装虚拟机

我怕爱的太早我们不能终老 提交于 2020-01-09 11:20:37
转自 https://wiki.ubuntu.com/ARM64/QEMU https://gist.github.com/george-hawkins/16ee37063213f348a17717a7007d2c79 https://morningd.github.io/2018/01/08/how-to-run-aarch64-ubuntu-server-cloudimg-on-x86-64/ https://www.cnblogs.com/jinanxiaolaohu/p/11003388.html AArch64上qemu起虚拟机的过程 1.编译安装aarch64的qemu 这里用的是spdk-3.0.0 qemu Mkdir build && cd build ../configure --target-list=aarch64-softmmu --enable-debug make && make install 2.安装qemu-efi sudo apt-install qemu-efi 生成的文件在 /usr/share/qemu-efi/QEMU_EFI.fd wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd 这个

Speed up Android emulator

瘦欲@ 提交于 2020-01-09 06:20:50
问题 I read on many other topics that the Android emulator starts really slow. Indeed, it takes +15 mins to start. However, on my machine is slow even after that. The 'phone' responds with a 3-4 seconds delay and everything has a huge lag. Is there any way to improve the performance of my laptop (Asus 1201N) is too rusty for the Android emulator? PS: Tried in different emulator resolutions and the result is the same Edit: My laptop has 2 cores with HyperThreading. And it shows as 4 CPU in Device

Speed up Android emulator

你说的曾经没有我的故事 提交于 2020-01-09 06:20:49
问题 I read on many other topics that the Android emulator starts really slow. Indeed, it takes +15 mins to start. However, on my machine is slow even after that. The 'phone' responds with a 3-4 seconds delay and everything has a huge lag. Is there any way to improve the performance of my laptop (Asus 1201N) is too rusty for the Android emulator? PS: Tried in different emulator resolutions and the result is the same Edit: My laptop has 2 cores with HyperThreading. And it shows as 4 CPU in Device

How to single step ARM assembly in GDB on QEMU?

孤者浪人 提交于 2020-01-09 05:25:07
问题 I'm trying to learn about ARM assembler programming using the GNU assembler. I've setup my PC with QEmu and have a Debian ARM-HF chroot environment. If I assemble and link my test program: .text .global _start _start: mov r0, #6 bx lr with: as test.s -o test.o ld test.o -o test Then load the file into gdb and set a breakpoint on _start: root@Latitude-E6420:/root# gdb test GNU gdb (GDB) 7.6.1 (Debian 7.6.1-1) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3