PHIPS BLOG

  •  Home
  •  Get To Know Me
  •  Contact & Follow

QEMU

Terminal Screenshot: Running a Linux VM with the debugcon driver in QEMU.
Programming & DevOps

Writing a Linux Driver for QEMU’s Debugcon Device

In earlier blog posts, I discussed QEMU’s debugcon device and presented a minimal driver for it written in x86 assembly. In this blog post, we go a little higher and write a driver for Linux in C. The driver should provide a /dev/debugcon device so that processes can open the Read more…

By Philipp Schuster, 3 weeks2023-03-08 ago
Code Snippet: Part of the QEMU Debugcon Driver written in Assembly
Programming & DevOps

The Probably Simplest x86 Driver Written in Assembly – Printing to QEMU’s debugcon-Device

This is an educational resource I wish I had when I started digging into low-level and operating systems during my early time of my studies at the university. However, dear past me, I got your back! Do you want to see a minimal way to communicate with (virtual) hardware and Read more…

By Philipp Schuster, 6 months2022-09-26 ago
Programming & DevOps

How to Find Out if a Binary Runs Inside QEMU

In the previous blog post we talked about how to use QEMUs debugcon feature. To do this responsibly, we should only do this if the binary runs in fact inside QEMU. To find this out, one can use the cpuid instruction. It gives us a lot of information about our Read more…

By Philipp Schuster, 2 years2021-07-07 ago
Programming & DevOps

How to Use QEMUs “debugcon”-Feature (and Write Debug Infomation to the Terminal or a File)

QEMU is a VMM often used for low-level OS/kernel development and testing. Especially when you write your own OS/kernel, things can get really hard and difficult to debug. Furthermore, there are not many debug capabilities, as you can’t write to files or print to the screen in early boot phases, Read more…

By Philipp Schuster, 2 years2021-07-07 ago

Because this blog is a few years old and used to be a more or less personal german blog, old posts are in german. Newer posts are in english.

  • Impressum
  • Datenschutzerklärung
Hestia | Developed by ThemeIsle
Cookie Notice
We use cookies on our website to store your preferences and to create anonymous statistics about the usage of this site. You can control the tracking by Matomo Analytics here.

Datenschutzerklärung (Privacy)

Accept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_pk_cvar12mUsed by Matomo for analysis of your visit on our website.
_pk_id12mUsed by Matomo for analysis of your visit on our website.
_pk_ref12mUsed by Matomo for analysis of your visit on our website.
_pk_ses12mUsed by Matomo for analysis of your visit on our website.
SAVE & ACCEPT