Skip to content

Instantly share code, notes, and snippets.

telnet 127.0.0.1 55555
// CPU hotplug
(qemu) device_add host-x86_64-cpu,id=core4,socket-id=1,core-id=1,thread-id=0

// CPU hotunplug
(qemu) device_del core4
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20180629 (64-bit version)
* Copyright (c) 2000 - 2018 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Mon Jul 30 17:52:13 2018
*
        Scope (_SB)
        {
            Device (GED)
            {
                Name (_HID, "ACPI0013" /* Generic Event Device */)  // _HID: Hardware ID
                Name (_UID, Zero)  // _UID: Unique ID
                Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
                {
                    Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
bus: main-system-bus
  type System
  dev: sysbus-debugcon, id ""
    iobase = 1026 (0x402)
    chardev = "debugcon"
    readback = 233 (0xe9)
  dev: fw_cfg_io, id ""
    dma_enabled = true
    x-file-slots = 32 (0x20)
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
VMN=${VMN:=1}
sudo /home/samuel/devlp/hypervisor/nemu/build-x86-64/x86_64-softmmu/qemu-system-x86_64 \
-bios $HOME/devlp/hypervisor/nemu/clear-cloud/OVMF.fd \
-nographic \
-nodefaults \
(qemu) info qtree
bus: main-system-bus
  type System
  dev: sysbus-debugcon, id ""
    iobase = 1016 (0x3f8)
    chardev = "debugcon"
    readback = 233 (0xe9)
  dev: kvmclock, id ""
 x-mach-use-reliable-get-clock = true
/machine (virt-2.12-machine)
/peripheral (container)
/peripheral-anon (container)
/device[0] (sysbus-debugcon)
/sysbus-debugcon[0] (qemu:memory-region)
/unattached (container)
/sysbus (System)
/device[0] (host-x86_64-cpu)
/lapic (kvm-apic)
/kvm-apic-msi[0] (qemu:memory-region)
sudo -E ./CI/start_qemu.sh -hypervisor /usr/bin/qemu-system-x86_64 -imagetype qcow2 -image ~/workloads/Fedora-Cloud-Base-28-1.1.x86_64.qcow2 -cloudinit CI/cloud-init/ -platform x86_64_pc -l -d -s
From 2901acba787d37f94e5c2eacd38345a23016926e Mon Sep 17 00:00:00 2001
From: Samuel Ortiz <sameo@linux.intel.com>
Date: Tue, 10 Jul 2018 12:23:35 +0200
Subject: [PATCH] acpi-build fix
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
hw/i386/acpi-build.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.9.34-75.container Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"