Commit a5864e37 authored by Wang Yuanheng's avatar Wang Yuanheng Committed by guzitao
Browse files

sw64: kvm: fix size of struct kvm_regs for C3B

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBDJNZ



--------------------------------

The size of struct kvm_regs passed by Qemu is fixed and checked
in kernel. Since Qemu has extended the struct kvm_regs, this patch
adds some padding bytes to ensure that the size of struct kvm_regs
is the same on both C3B and C4.

Signed-off-by: default avatarWang Yuanheng <wangyuanheng@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent cbb9eb5b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ struct kvm_regs {

	unsigned long r27;
	unsigned long r28;
	unsigned long __padding0;
	unsigned long reserved;
	unsigned long fpcr;

	unsigned long fp[124];
@@ -60,6 +60,7 @@ struct kvm_regs {
	unsigned long r16;
	unsigned long r17;
	unsigned long r18;
	unsigned long __padding[6];
};

#elif CONFIG_SUBARCH_C4