[Devel] [PATCH] Revert "ploop: Remove excess variable"

2019-03-25 Thread Kirill Tkhai
saved_ioc may be NULL. Then we increment the counter and never decrement it. It even may overflow later. https://jira.sw.ru/browse/PSBM-93006 Signed-off-by: Kirill Tkhai --- drivers/block/ploop/dev.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/block/ploop/d

[Devel] [PATCH vz7.73] KVM: x86: Update cpuid properly when CR4.OSXAVE or CR4.PKE is changed

2019-03-25 Thread Roman Kagan
From: Wei Huang The CPUID bits of OSXSAVE (function=0x1) and OSPKE (func=0x7, leaf=0x0) allows user apps to detect if OS has set CR4.OSXSAVE or CR4.PKE. KVM is supposed to update these CPUID bits when CR4 is updated. Current KVM code doesn't handle some special cases when updates come from emulat