[PATCH] kvm: arm/arm64 : vgic: remove unneeded semicolon

2018-12-26 Thread Peng Hao
Remove unneeded semicolon in kvm_vgic_hyp_init. Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic/vgic-init.c b/virt/kvm/arm/vgic/vgic-init.c index c0c0b88..3496155 100644 --- a/virt/kvm/arm/vgic/vgic

[PATCH] kvm:arm/arm64: vgic: remove unnecessary semicolon

2018-12-26 Thread Peng Hao
Remove unnecessary semicolon in vgic_put_irq. Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic/vgic.c b/virt/kvm/arm/vgic/vgic.c index 7cfdfbc..f9ff5c7 100644 --- a/virt/kvm/arm/vgic/vgic.c +++ b/virt/kvm

[PATCH] kvm/arm : remove unnecessary local variable

2018-12-24 Thread Peng Hao
Remove unnecessary local variable in vgic_set_common_attr Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-kvm-device.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/virt/kvm/arm/vgic/vgic-kvm-device.c b/virt/kvm/arm/vgic/vgic-kvm-device.c index 114dce9..53e5df7

[PATCH] kvm/arm64 : reduce the size of kvm_vcpu

2018-12-24 Thread Peng Hao
According to adjust the position of variables in kvm_vcpu_arch, the size of kvm_vcpu can reduce 16 bytes. before: cat /proc/slabinfo | grep kvm kvm_vcpu 252252 9120 28 ... after: cat /proc/slabinfo | grep kvm kvm_vcpu 28 28 9104 28 ... Signed-off-by: Peng Hao --- arch

[PATCH] kvm/arm: return 0 when the number of objects is not less than min

2018-12-04 Thread Peng Hao
Return 0 when there is enough kvm_mmu_memory_cache object. Signed-off-by: Peng Hao --- virt/kvm/arm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c index ed162a6..fcda0ce 100644 --- a/virt/kvm/arm/mmu.c +++ b/virt/kvm/arm/mmu.c

[PATCH] kvm: arm/arm64 : fix vm's hanging at startup time

2018-11-14 Thread Peng Hao
or V2 correctly, so group is not set. group is setted to 1 when vgic_mmio_write_group is invoked at some time. when irq->group=0 (intid=27), No ICH_LR_GROUP flag was set and interrupt injection failed. Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-v3.c | 2 +- 1 file changed, 1 inserti

[PATCH] kvm : arm/arm64 : fix some warningg

2018-04-01 Thread Peng Hao
fix some "warning: no previous prototype". Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-its.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c index 4650953..881494b 100644 --- a/virt/kvm/arm

[PATCH] KVM: arm/armv4 : merge the same case handler

2018-03-26 Thread Peng Hao
The two switch cases have the same handler, so merge them. Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-its.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c index 4650953..aa41b29 100644 --- a/virt/kvm/arm/vgic/vgic-its.c

[PATCH v3] KVM: arm/arm64 : add lpi info in vgic-debug

2018-03-23 Thread Peng Hao
Add lpi debug info to vgic-stat. The printed info like this: SPI 287 0 0100 0 160 -1 LPI 8192 2 00010000 0 160 -1 Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-debug.c | 59 ++ virt

[PATCH v2] KVM: arm/arm64 : add lpi info in vgic-debug

2018-03-23 Thread Peng Hao
Add lpi debug info to vgic-stat. the printed info like this: SPI 287 0 0100 0 160 -1 LPI 8192 2 00010000 0 160 -1 Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-debug.c | 56 ++ 1

[PATCH] KVM: arm/arm64 : add lpi info in vgic-debug

2018-03-23 Thread Peng Hao
Add lpi debug info to vgic-stat. the printed info like this: SPI 287 0 0100 0 160 -1 LPI 8192 2 00010000 0 160 -1 Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-debug.c | 61 ++ 1

[PATCH] KVM: arm/arm64: replacing per-VM's per-CPU variable

2018-03-13 Thread Peng Hao
Using a global per-CPU variable instead of per-VM's per-CPU variable. Signed-off-by: Peng Hao --- arch/arm/include/asm/kvm_host.h | 3 --- arch/arm64/include/asm/kvm_host.h | 3 --- virt/kvm/arm/arm.c| 26 ++ 3 files changed, 6 insertions(+

[PATCH] KVM:arm/arm64: dcache need be coherent unconditionally

2018-03-09 Thread Peng Hao
For emulation devices just like vga, keeping coherent dcache between guest and host timely is needed. Now the display of vnc-viewer will not update continuously and the patch can fix up. Signed-off-by: Peng Hao --- virt/kvm/arm/mmu.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions