Skip to content

Instantly share code, notes, and snippets.

@soccertack
soccertack / gist:a9a1e5047b37cd19e4cc7d7f9032f856
Last active March 6, 2019 03:45
viommu log for modify_irte() from L1 kernel
<beginning of modify_irte()> the log below is just for one exit.
11731 qemu-system-x86-30701 [003] .... 24167.220310: tracing_mark_write: vtd_reg_write addr 0x88 size 0x4 value 0xda0
11732 qemu-system-x86-30701 [003] .... 24167.220312: tracing_mark_write: vtd_inv_qi_tail write tail 218
11733 qemu-system-x86-30701 [003] .... 24167.220312: tracing_mark_write: vtd_inv_qi_fetch•
11734 qemu-system-x86-30701 [003] .... 24167.220313: tracing_mark_write: vtd_inv_qi_head read head 216
11735 qemu-system-x86-30701 [003] .... 24167.220315: tracing_mark_write: vtd_inv_desc invalidate desc type iec high 0x0 low 0x1f00000014
11736 qemu-system-x86-30701 [003] .... 24167.220316: tracing_mark_write: vtd_inv_desc_iec granularity 0x1 index 0x1f mask 0x0
11737 qemu-system-x86-30701 [003] .... 24167.220319: tracing_mark_write: vtd_ir_remap_msi_req addr 0xfee00398 data 0x0
11738 qemu-system-x86-30701 [003] .... 24167.220321: tracing_mark_write: vtd_ir_irte_get index 28 low 0x40020 high 0x400025000d
11739 qe
@soccertack
soccertack / columbia_x86_trace_defconfig
Last active February 11, 2019 18:56
columbia_x86_defconfig trace
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.15.0 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"
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.0.0-rc4 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@soccertack
soccertack / isca_domU_config
Created October 8, 2018 16:03
isca domU config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.0.0-rc4 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@soccertack
soccertack / domU_defconfig
Created October 7, 2018 20:25
Xen domU defconfig x86
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.15.0 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"
@soccertack
soccertack / dom0_defconfig
Created October 7, 2018 19:54
x86 dom0 config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.15.0 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"
@soccertack
soccertack / columbia_x86_defconfig
Last active February 11, 2019 18:53
x86 4.15 defconfig having kexec
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.15.0 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"
@soccertack
soccertack / gist:dc1defed0c90ade75ade43f56af00a51
Created May 29, 2018 03:36
L2 with assigned emulated network device: not working
[L2-x86 ~]
$dmesg
[ 0.000000] Linux version 4.15.0 (root@node.jintackl-qv32716.kvmarm-pg0.wisc.cloudlab.us) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.8
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0 root=UUID=80d19d14-71e4-4668-b96f-3b70f0046e85 ro console=ttyS0,38400n8
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] e820: BIOS-provided physical RAM map:
systemd-udevd[3737]: Failed to apply ACL on /dev/kvm: Operation not supported
kvm [3745]: Unknown PV encoding: imm: 0x00 at ffff0000080ab290
------------[ cut here ]------------
kernel BUG at arch/arm64/kvm/handle_exit_nested_pv.c:247!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 6 PID: 3745 Comm: qemu-system-aar Not tainted 4.15.0+ #181
Hardware name: HP ProLiant m400 Server Cartridge (DT)
pstate: 40000005 (nZcv daif -PAN -UAO)
pc : handle_pv+0x54/0x58
@soccertack
soccertack / columbia_armvirt_defconfig
Last active February 23, 2018 02:23
default arm64 config
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
CONFIG_AUDIT=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y