[PATCH][RFC] dm raid: Fix NULL pointer dereference for raid1 without bitmap

2017-03-30 Thread kmeaw
From: Dmitry Bilunov 4257e08 introduces a bitmap resize call during preresume phase. User can create a DM device with "raid" target configured as raid1 with no metadata devices to hold superblock/bitmap info. It can be achieved using the following sequence: truncate -s 32M /dev/shm/raid-test

[PATCH] KVM: Handle MSR_IA32_PERF_CTL

2016-05-26 Thread kmeaw
From: Dmitry Bilunov Intel CPUs having Turbo Boost feature implement an MSR to provide a control interface via rdmsr/wrmsr instructions. One could detect the presence of this feature by issuing one of these instructions and handling the #GP exception which is generated in case the referenced MSR