On 11/6/11 6:51 PM, Avi Kivity wrote:
The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance
in virtual environment") is hacky and somewhat wrong.
First, the detection code
+ if (inside_vm< 0) {
+ /* detect KVM and Parallels virtual environments */
+
On 11/6/11 8:31 PM, Avi Kivity wrote:
On 11/06/2011 06:15 PM, Denis V. Lunev wrote:
On 11/6/11 6:51 PM, Avi Kivity wrote:
The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance
in virtual environment") is hacky and somewhat wrong.
First, the detection code
On 11/6/11 8:47 PM, Takashi Iwai wrote:
At Sun, 06 Nov 2011 18:31:42 +0200,
Avi Kivity wrote:
On 11/06/2011 06:15 PM, Denis V. Lunev wrote:
On 11/6/11 6:51 PM, Avi Kivity wrote:
The recently merged 228cf79376f1 ("ALSA: intel8x0: Improve performance
in virtual environment") is
setup SINT's routing
* inject SINT's into destination vCPU by 'hyperv-synic-test-device'
* wait for SINT's isr's completion
* clear Hyper-V SynIC evt/msg pages and destroy SINT's routing
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V
On 12/01/2015 01:12 PM, Wanpeng Li wrote:
2015-11-26 16:34 GMT+08:00 Andrey Smetanin :
On 11/26/2015 08:28 AM, Wanpeng Li wrote:
2015-11-25 23:20 GMT+08:00 Andrey Smetanin :
Per Hyper-V specification (and as required by Hyper-V-aware guests),
SynIC provides 4 per-vCPU timers. Each timer is p
On 12/02/2015 03:22 PM, Paolo Bonzini wrote:
On 30/11/2015 17:22, Andrey Smetanin wrote:
enum hv_message_type inside struct hv_message, hv_post_message
is not size portable. Replace enum by u32.
It's only non-portable inside structs. Okay to apply just these:
@@ -172,7 +174,7 @@ union hv_mes
On 12/04/2015 05:41 PM, Paolo Bonzini wrote:
On 04/12/2015 15:33, Denis V. Lunev wrote:
On 12/02/2015 03:22 PM, Paolo Bonzini wrote:
On 30/11/2015 17:22, Andrey Smetanin wrote:
enum hv_message_type inside struct hv_message, hv_post_message
is not size portable. Replace enum by u32.
It
On 12/04/2015 08:38 PM, Paolo Bonzini wrote:
On 04/12/2015 17:55, Denis V. Lunev wrote:
On 12/04/2015 05:41 PM, Paolo Bonzini wrote:
On 04/12/2015 15:33, Denis V. Lunev wrote:
On 12/02/2015 03:22 PM, Paolo Bonzini wrote:
On 30/11/2015 17:22, Andrey Smetanin wrote:
enum hv_message_type
Share generic Hyper-V tests code
* Hyper-V SynIC timers test fixes to improve
readability and output
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
CC: Paolo Bonzini
CC: Marcelo Tosatti
CC: Roman Kagan
CC: Denis V. Lunev
CC: qemu-de...@nongnu.org
Andrey Smetanin (3):
lib/x86:
On 12/17/2015 05:55 PM, Paolo Bonzini wrote:
On 16/12/2015 19:51, Denis V. Lunev wrote:
On 12/08/2015 07:36 PM, Andrey Smetanin wrote:
The test checks Hyper-V SynIC timers functionality.
The test runs on every vCPU and performs start/stop
of periodic/one-shot timers (with period=1ms) and
On 12/18/2015 06:19 PM, Pavel Fedin wrote:
Hello!
I realize that it's perhaps too late, because patches are already on
Linux-next, but i have one concern... May be it's not too
late...
I dislike implementing architecture-dependent exit code where we could
implement an architecture-indep
device without
QEMU guest agent for Windows.
The idea is borrowed from Linux HyperV bus driver and validated against
Windows 2k12.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Gleb Natapov
CC: Paolo Bonzini
---
include/sysemu/sysemu.h| 2 ++
kvm-all.c
is to provide functionality equal to pvpanic device without
QEMU guest agent for Windows.
The idea is borrowed from Linux HyperV bus driver and validated against
Windows 2k12.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Gleb Natapov
CC: Paolo Bonzini
--
To unsubscribe from this
QEMU/LIBVIRT.
The idea is to provide functionality equal to pvpanic device without
QEMU guest agent for Windows.
The idea is borrowed from Linux HyperV bus driver and validated against
Windows 2k12.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Gleb Natapov
CC: Paolo Bonzini
---
msrs.
The idea is to provide functionality equal to pvpanic device without
QEMU guest agent for Windows.
The idea is borrowed from Linux HyperV bus driver and validated against
Windows 2k12.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färber
From: Andrey Smetanin
Hyper-V crash msr's a per VM, not per vcpu, so mark them
as partition wide.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x8
ntext structures
* added saving crash msrs inside qemu cpu state
* added qemu fetch and update of crash msrs
* added qemu crash msrs store in cpu state and it's migration
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Gleb Natapov
CC: Paolo Bonzini
--
To unsubscribe from
From: Andrey Smetanin
Added Hyper-V crash msrs HV_X64_MSR_CRASH* constants.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/uapi/asm/hyperv.h | 15 +++
1 file changed, 15 insertions(+)
diff --git a/arch/x86
From: Andrey Smetanin
vcpu_debug is a useful macro like kvm_debug and additionally
includes vcpu context into output.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 3 +++
1 file changed, 3 insertions(+)
diff
From: Andrey Smetanin
Added KVM_REQ_HV_CRASH - vcpu request used for notify user space(QEMU)
about Hyper-v crash.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 1 +
1 file changed, 1 insertion(+)
diff --git a
rash msr's.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färber
---
target-i386/cpu.h | 1 +
target-i386/kvm.c | 1 +
target-i386/machine.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 4
HV_X64_MSR_CRASH_CTL_NOTIFY value
into crash ctl msr. Thus both user space and guest writes inside ctl msr the
same value and this patch distingiush the moment of actual guest crash
by checking host initiated value from msr info.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb
based guest.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/x86.c | 8
include/uapi/linux/kvm.h | 2 ++
2 files changed, 10 insertions(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 2046b78..111fa83
s and authors information copied from x86.c to hyperv.c.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 20 ++-
arch/x86/kvm/Makefile | 2 +-
arch/x86/kvm/hyperv.c
From: Andrey Smetanin
Added hyper-v crash msr's(HV_X64_MSR_CRASH*) data and control
geters and setters.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv.c | 66 +++
From: Andrey Smetanin
Added kvm hyperv context hv crash variables as storage
of hyper-v crash msrs.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 4
1 file changed, 4 insertions(+)
diff --git a
On 22/06/15 19:33, Andreas Färber wrote:
Am 22.06.2015 um 18:27 schrieb Paolo Bonzini:
On the other hand, I wonder if current_cpu is available in
qemu_system_guest_panicked. If so, you could add the field to the
generic CPUState struct and migrate it as a subsection of
vmstate_cpu_common.
Hm,
On 23/06/15 02:52, Peter Hornyack wrote:
On Mon, Jun 22, 2015 at 9:05 AM, Denis V. Lunev wrote:
From: Andrey Smetanin
Added hyper-v crash msr's(HV_X64_MSR_CRASH*) data and control
geters and setters.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC:
On 23/06/15 12:51, Paolo Bonzini wrote:
On 23/06/2015 11:47, Denis V. Lunev wrote:
The current implementation is potentially more flexible but makes the
MSR handling a little more awkward since the host_initiated bool needs
to be passed around (patch 09). I guess either approach seems ok to
me
On 22/06/15 19:04, Denis V. Lunev wrote:
From: Andrey Smetanin
This patch introduces Hyper-V related source code file - hyperv.c and
per vm and per vcpu hyperv context structures.
All Hyper-V MSR's and hypercall code moved into hyperv.c.
All hyper-v kvm/vcpu fields moved into approp
msrs
* added per vm and per cpu hyperv context structures
* added saving crash msrs inside qemu cpu state
* added qemu fetch and update of crash msrs
* added qemu crash msrs store in cpu state and it's migration
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Gleb Natapov
From: Andrey Smetanin
Added Hyper-V crash msrs values - HV_X64_MSR_CRASH*.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/uapi/asm/hyperv.h | 15 +++
1 file changed, 15 insertions(+)
diff --git a/arch/x86
From: Andrey Smetanin
Hyper-V crash msr's are per vm, aren't per vcpu, so mark them
as partition wide.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git
thors information copied from x86.c
to hyperv.c.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 20 ++-
arch/x86/kvm/Makefile | 4 +-
arch/x86/kvm/hyperv.c
From: Andrey Smetanin
vcpu_debug is useful macro like kvm_debug but additionally
includes vcpu context inside output.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 3 +++
1 file changed, 3 insertions(+)
diff
From: Andrey Smetanin
Added KVM_REQ_HV_CRASH - vcpu request used for notify user space(QEMU)
about Hyper-V crash.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 1 +
1 file changed, 1 insertion(+)
diff --git a
guest.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/x86.c | 8
include/uapi/linux/kvm.h | 2 ++
2 files changed, 10 insertions(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 47b7507..55a4b92 100644
vents modification of crash ctl msr by guest.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv.c | 74 ---
arch/x86/kvm/hyperv.h | 2 +-
arch/x86/kvm/x86.c| 7 -
3 files change
From: Andrey Smetanin
Added kvm Hyper-V context hv crash variables as storage
of Hyper-V crash msrs.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 4
1 file changed, 4 insertions(+)
diff --git a
ecause ctl msr
always contains the same value HV_X64_MSR_CRASH_CTL_NOTIFY.
To solve it add a particular value - hv_crash_occurred
inside CPU state and migrate this value with crash msr's.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färbe
On 30/06/15 15:26, Daniel P. Berrange wrote:
On Tue, Jun 30, 2015 at 02:33:18PM +0300, Denis V. Lunev wrote:
Windows 2012 guests can notify hypervisor about occurred guest crash
(Windows bugcheck(BSOD)) by writing specific Hyper-V msrs. This patch does
handling of this MSR's by KVM and se
On 01/07/15 18:00, Paolo Bonzini wrote:
On 30/06/2015 13:33, Denis V. Lunev wrote:
+#define HV_X64_MSR_CRASH_CTL_NOTIFY(1ULL << 63)
+#define HV_X64_MSR_CRASH_CTL_CONTENTS \
+ (HV_X64_MSR_CRASH_CTL_NOTIFY)
Why is HV_X64_MSR_CRASH_CTL_CONTENTS needed? Can
On 01/07/15 17:09, Paolo Bonzini wrote:
On 30/06/2015 13:33, Denis V. Lunev wrote:
Windows 2012 guests can notify hypervisor about occurred guest crash
(Windows bugcheck(BSOD)) by writing specific Hyper-V msrs. This patch does
handling of this MSR's by KVM and sending notification to
moment of actual guest crash
by checking host initiated value from msr info. Also patch
prevents modification of crash ctl msr by guest.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv
From: Andrey Smetanin
Added Hyper-V crash msrs values - HV_X64_MSR_CRASH*.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/uapi/asm/hyperv.h | 11 +++
1 file changed, 11 insertions
thors information copied from x86.c
to hyperv.c.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 20 ++-
arch/x86/kvm/Makefile | 4 +-
arch/x86/kvm/hyp
From: Andrey Smetanin
Added KVM_REQ_HV_CRASH - vcpu request used for notify user space(QEMU)
about Hyper-V crash.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 1 +
1 file changed
From: Andrey Smetanin
vcpu_debug is useful macro like kvm_debug but additionally
includes vcpu context inside output.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 3 +++
1 file
From: Andrey Smetanin
Hyper-V crash msr's are per vm, aren't per vcpu, so mark them
as partition wide.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv.c | 2 ++
1 file changed, 2
added per vm and per cpu hyperv context structures
* added saving crash msrs inside qemu cpu state
* added qemu fetch and update of crash msrs
* added qemu crash msrs store in cpu state and it's migration
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Gleb Natapov
CC: Pao
From: Andrey Smetanin
Added kvm Hyper-V context hv crash variables as storage
of Hyper-V crash msrs.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 4
1 file changed, 4
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
Documentation/virtual/kvm/api.txt | 5 +
arch/x86/kvm/x86.c| 6 ++
include/uapi/linux/kvm.h | 1 +
3 files changed, 12 insertions(+)
diff --git a/Documentation
state and it's migration
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Gleb Natapov
CC: Paolo Bonzini
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.
From: Andrey Smetanin
vcpu_debug is useful macro like kvm_debug but additionally
includes vcpu context inside output.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 3 +++
1 file
thors information copied from x86.c
to hyperv.c.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 20 ++-
arch/x86/kvm/Makefile | 4 +-
arch/x86/kvm/hyp
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
Documentation/virtual/kvm/api.txt | 5 +
arch/x86/kvm/x86.c| 6 ++
include/uapi/linux/kvm.h | 1 +
3 files changed, 12 insertions(+)
diff --git a/Documentation
moment of actual guest crash
by checking host initiated value from msr info. Also patch
prevents modification of crash ctl msr by guest.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv
tion.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färber
---
linux-headers/asm-x86/hyperv.h | 13 +
linux-headers/linux/kvm.h | 1 +
target-i386/cpu-qom.h | 1 +
target-i386/cpu.c | 1 +
target-i386/cpu
From: Andrey Smetanin
Added kvm Hyper-V context hv crash variables as storage
of Hyper-V crash msrs.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 4
1 file changed, 4
From: Andrey Smetanin
Added KVM_REQ_HV_CRASH - vcpu request used for notify user space(QEMU)
about Hyper-V crash.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 1 +
1 file changed
From: Andrey Smetanin
Added Hyper-V crash msrs values - HV_X64_MSR_CRASH*.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/uapi/asm/hyperv.h | 11 +++
1 file changed, 11 insertions
From: Andrey Smetanin
Hyper-V crash msr's are per vm, aren't per vcpu, so mark them
as partition wide.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv.c | 2 ++
1 file changed, 2
From: Andrey Smetanin
There are pieces of guest panic handling code that can be shared
in one generic function.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färber
---
hw/misc/pvpanic.c | 3 +--
include/sysemu/sysemu.h | 1 +
target
From: Andrey Smetanin
CPUState->crash_occurred value inside CPUState marks
that guest crash occurred. This value added into cpu common
migration subsection.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färber
---
exec.c|
From: Andrey Smetanin
KVM kernel can receive guest crash events. Patch code calls appropriate
handler for kernel guest crash event. Guest crash event recognized
by KVM_SYSTEM_EVENT_CRASH type of system event.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC
From: Andrey Smetanin
Added KVM_REQ_HV_CRASH - vcpu request used for notify user space(QEMU)
about Hyper-V crash.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 1 +
1 file changed
read handlers of crash data msrs
* added per vm and per cpu hyperv context structures
* added saving crash msrs inside qemu cpu state
* added qemu fetch and update of crash msrs
* added qemu crash msrs store in cpu state and it's migration
Signed-off-by: Andrey Smetanin
Signed-off-by: Deni
thors information copied from x86.c
to hyperv.c.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 20 ++-
arch/x86/kvm/Makefile | 4 +-
arch/x86/kvm/hyp
From: Andrey Smetanin
KVM kernel can send guest crash events into userspace.
Appropriate guest crash handler is called when kernel guest
crash event received. Guest crash event recognized by a
KVM_SYSTEM_EVENT_CRASH type of system event.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V
From: Andrey Smetanin
Added Hyper-V crash msrs values - HV_X64_MSR_CRASH*.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/uapi/asm/hyperv.h | 11 +++
1 file changed, 11 insertions
From: Andrey Smetanin
There are pieces of guest panic handling code
that can be shared in one generic function.
These code replaced by call qemu_system_guest_panicked().
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färber
---
hw/misc/pvpanic.c
tion.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färber
---
linux-headers/asm-x86/hyperv.h | 13 +
target-i386/cpu-qom.h | 1 +
target-i386/cpu.c | 1 +
target-i386/cpu.h | 2 ++
target-i386/kvm
From: Andrey Smetanin
Added kvm Hyper-V context hv crash variables as storage
of Hyper-V crash msrs.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host.h | 4
1 file changed, 4
From: Andrey Smetanin
CPUState::crash_occurred field inside CPUState marks
that guest crash occurred. This value is added into
cpu common migration subsection.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Andreas Färber
---
exec.c| 19
From: Andrey Smetanin
Hyper-V crash msr's are per vm, aren't per vcpu, so mark them
as partition wide.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyperv.c | 2 ++
1 file changed, 2
From: Andrey Smetanin
vcpu_debug is useful macro like kvm_debug but additionally
includes vcpu context inside output.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
include/linux/kvm_host.h | 3 +++
1 file
moment of actual guest crash
by checking host initiated value from msr info. Also patch
prevents modification of crash ctl msr by guest.
Signed-off-by: Andrey Smetanin
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/hyp
Signed-off-by: Denis V. Lunev
Reviewed-by: Peter Hornyack
CC: Paolo Bonzini
CC: Gleb Natapov
---
Documentation/virtual/kvm/api.txt | 5 +
arch/x86/kvm/x86.c| 6 ++
include/uapi/linux/kvm.h | 1 +
3 files changed, 12 insertions(+)
diff --git a/Documentation
On 08/12/2015 03:47 PM, Paolo Bonzini wrote:
On 12/08/2015 13:54, Denis V. Lunev wrote:
guys?
we are going to move forward with other HyperV bits.
Wait a second, 2.4 was released only a few hours ago...
Paolo
sure :)
--
To unsubscribe from this list: send the line "unsubscribe kvm&qu
On 08/18/2015 05:41 PM, Wanpeng Li wrote:
On 7/3/15 8:01 PM, Denis V. Lunev wrote:
From: Andrey Smetanin
Added hyper-v crash msr's(HV_X64_MSR_CRASH*) data and control
geters and setters. Userspace should check that such msr's
available by check of KVM_CAP_HYPERV_MSR_CRASH capab
e_adjusted()
for vcpu task.
Necessary to support loading of winhv.sys in guest, which in turn is
required to support Windows VMBus.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/asm/kvm_host
igned-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
Andrey Smetanin (3):
kvm/x86: Hyper-V HV_X64_MSR_RESET msr
kvm/x86: Hyper-V HV_X64_MSR_VP_INDEX export for QEMU.
kvm/x86: Hyper-V HV_X64_MSR_VP_RUNTIME support
arch/x86/include/asm/kvm_host.h| 1 +
arch/x86/include/uap
: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/include/uapi/asm/hyperv.h | 3 +++
arch/x86/kvm/hyperv.c | 10 ++
arch/x86/kvm/x86.c | 7 +++
include/linux/kvm_host.h | 1 +
4 files changed, 21 insertions(+)
diff --git a/arch
pport Windows VMBus.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Paolo Bonzini
CC: Gleb Natapov
---
arch/x86/kvm/x86.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 5a14a66..c2028ac 100644
--- a
On 09/18/2015 04:39 PM, kbuild test robot wrote:
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head: ed393e4134de0dd02d8ba98ca8ce3ae65d1eb567
commit: 46f4c309534b10ca1026273abe38955d3cff4023 [27/38] kvm/x86: Hyper-V
HV_X64_MSR_VP_RUNTIME support
reproduce:
# apt-get install
On 09/18/2015 04:55 PM, Paolo Bonzini wrote:
On 18/09/2015 15:51, Denis V. Lunev wrote:
185
> 186task_cputime_adjusted(current, &utime, &stime);
187return div_u64(cputime_to_nsecs(utime + stime), 100);
188}
189
190static int kvm
pdate mappings for arch-specific irq routing entries
(in particular, the upcoming Hyper-V synthetic interrupts).
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC: "K. Y. Srinivasan"
CC: Gleb Natapov
CC: Paolo Bonzini
--
From: Andrey Smetanin
Moved Hyper-V synic contants from guest Hyper-V drivers private
header into x86 arch uapi Hyper-V header.
Added Hyper-V synic msr's flags into x86 arch uapi Hyper-V header.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: V
writing to the
corresponding MSRs.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC: "K. Y. Srinivasan"
CC: Gleb Natapov
CC: Paolo Bonzini
Changes v2:
* irqchip/eventfd preparation improvements to support
arch specific r
From: Andrey Smetanin
Any other irq routing types (MSI, S390_ADAPTER, upcoming Hyper-V
SynIC) map one-to-one to GSI.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC: "K. Y. Srinivasan"
CC: Gleb Natapov
CC: Pao
y may need to cause vmexits too.
To achieve that, introduce a new bitmap dedicated specifically for
ioapic-handled vectors, and populate EOI exit bitmap from it for now.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC: "K. Y.
From: Andrey Smetanin
Factor out kvm_notify_acked_gsi() helper to iterate over EOI listeners
and notify those matching the given gsi.
It will be reused in the upcoming Hyper-V SynIC implementation.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC
From: Andrey Smetanin
The loop(for) inside irqfd_update() is unnecessary
because any other value for irq_entry.type will just trigger
schedule_work(&irqfd->inject).
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC
: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC: "K. Y. Srinivasan"
CC: Gleb Natapov
CC: Paolo Bonzini
---
include/linux/kvm_host.h | 4
virt/kvm/eventfd.c | 13 -
2 files changed, 16 insertions(+), 1 deletio
From: Andrey Smetanin
A new vcpu exit is introduced to notify the userspace of the
changes in Hyper-V SynIC configuration triggered by guest writing to the
corresponding MSRs.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC: &q
gured SINT, and irq_routing api is extended to support GSI-SINT
mapping.
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC: "K. Y. Srinivasan"
CC: Gleb Natapov
CC: Paolo Bonzini
Changes v2:
* do not use posted interrupts
On 10/26/2015 01:03 PM, Peter Maydell wrote:
On 26 October 2015 at 09:50, Andrey Smetanin wrote:
Signed-off-by: Andrey Smetanin
Reviewed-by: Roman Kagan
Signed-off-by: Denis V. Lunev
CC: Vitaly Kuznetsov
CC: "K. Y. Srinivasan"
CC: Gleb Natapov
CC: Paolo Bonzini
CC: Roman
On 10/22/2015 07:34 PM, Paolo Bonzini wrote:
On 22/10/2015 18:10, Andrey Smetanin wrote:
A new vcpu exit is introduced to notify the userspace of the
changes in Hyper-V SynIC configuration triggered by guest writing to the
corresponding MSRs.
Changes v3:
* added KVM_EXIT_HYPERV types and struc
On 26/12/14 13:00, Peter Maydell wrote:
On 26 December 2014 at 08:05, Tiejun Chen wrote:
We should avoid to set irqfd{} unconditionally.
Signed-off-by: Tiejun Chen
Is there a hot path that we use this on such that the difference
in code order matters at all?
thanks
-- PMM
IMHO the patch
99 matches
Mail list logo