rebase patches on top of Ubuntu-5.15.0-90.100
(generated with debian/scripts/import-upstream-tag) Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9926a46d5e
commit
dec49aeaec
@ -21,7 +21,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 7 insertions(+), 3 deletions(-)
|
1 file changed, 7 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
|
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
|
||||||
index 6a2a04d92f42..6c9430ee1a09 100755
|
index 6a2a04d92f42f..6c9430ee1a09d 100755
|
||||||
--- a/scripts/mkcompile_h
|
--- a/scripts/mkcompile_h
|
||||||
+++ b/scripts/mkcompile_h
|
+++ b/scripts/mkcompile_h
|
||||||
@@ -22,10 +22,14 @@ else
|
@@ -22,10 +22,14 @@ else
|
||||||
|
@ -19,7 +19,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
|
|
||||||
diff --git a/net/wireless/certs/debian.hex b/net/wireless/certs/debian.hex
|
diff --git a/net/wireless/certs/debian.hex b/net/wireless/certs/debian.hex
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000000..c5ab03f8c500
|
index 0000000000000..c5ab03f8c500d
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/net/wireless/certs/debian.hex
|
+++ b/net/wireless/certs/debian.hex
|
||||||
@@ -0,0 +1,1426 @@
|
@@ -0,0 +1,1426 @@
|
||||||
|
@ -19,7 +19,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 1 insertion(+), 4 deletions(-)
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||||
|
|
||||||
diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c
|
diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c
|
||||||
index 3326dfced68a..3f1604948ace 100644
|
index 3326dfced68ab..3f1604948ace3 100644
|
||||||
--- a/net/bridge/br_stp_if.c
|
--- a/net/bridge/br_stp_if.c
|
||||||
+++ b/net/bridge/br_stp_if.c
|
+++ b/net/bridge/br_stp_if.c
|
||||||
@@ -268,10 +268,7 @@ bool br_stp_recalculate_bridge_id(struct net_bridge *br)
|
@@ -268,10 +268,7 @@ bool br_stp_recalculate_bridge_id(struct net_bridge *br)
|
||||||
|
@ -55,7 +55,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
2 files changed, 111 insertions(+)
|
2 files changed, 111 insertions(+)
|
||||||
|
|
||||||
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
|
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
|
||||||
index ec75dbe3e930..4607674a9a32 100644
|
index 14113baa57082..170bbc08d6ace 100644
|
||||||
--- a/Documentation/admin-guide/kernel-parameters.txt
|
--- a/Documentation/admin-guide/kernel-parameters.txt
|
||||||
+++ b/Documentation/admin-guide/kernel-parameters.txt
|
+++ b/Documentation/admin-guide/kernel-parameters.txt
|
||||||
@@ -4000,6 +4000,15 @@
|
@@ -4000,6 +4000,15 @@
|
||||||
@ -75,7 +75,7 @@ index ec75dbe3e930..4607674a9a32 100644
|
|||||||
Safety option to keep boot IRQs enabled. This
|
Safety option to keep boot IRQs enabled. This
|
||||||
should never be necessary.
|
should never be necessary.
|
||||||
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
|
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
|
||||||
index c50eb9cb78d6..057f21de9ae9 100644
|
index c50eb9cb78d64..057f21de9ae9e 100644
|
||||||
--- a/drivers/pci/quirks.c
|
--- a/drivers/pci/quirks.c
|
||||||
+++ b/drivers/pci/quirks.c
|
+++ b/drivers/pci/quirks.c
|
||||||
@@ -193,6 +193,106 @@ static int __init pci_apply_final_quirks(void)
|
@@ -193,6 +193,106 @@ static int __init pci_apply_final_quirks(void)
|
||||||
|
@ -13,7 +13,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
|
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
|
||||||
index d11c581ce9b9..0b0ce6979370 100644
|
index d11c581ce9b9a..0b0ce69793702 100644
|
||||||
--- a/virt/kvm/kvm_main.c
|
--- a/virt/kvm/kvm_main.c
|
||||||
+++ b/virt/kvm/kvm_main.c
|
+++ b/virt/kvm/kvm_main.c
|
||||||
@@ -79,7 +79,7 @@ module_param(halt_poll_ns, uint, 0644);
|
@@ -79,7 +79,7 @@ module_param(halt_poll_ns, uint, 0644);
|
||||||
|
@ -10,7 +10,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/net/core/dev.c b/net/core/dev.c
|
diff --git a/net/core/dev.c b/net/core/dev.c
|
||||||
index 4d698ccf4172..776144daf79f 100644
|
index 4d698ccf41726..776144daf79f4 100644
|
||||||
--- a/net/core/dev.c
|
--- a/net/core/dev.c
|
||||||
+++ b/net/core/dev.c
|
+++ b/net/core/dev.c
|
||||||
@@ -10536,7 +10536,7 @@ static void netdev_wait_allrefs(struct net_device *dev)
|
@@ -10536,7 +10536,7 @@ static void netdev_wait_allrefs(struct net_device *dev)
|
||||||
|
@ -19,7 +19,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 4 insertions(+), 46 deletions(-)
|
1 file changed, 4 insertions(+), 46 deletions(-)
|
||||||
|
|
||||||
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
|
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
|
||||||
index 103ee42f6717..6b73e9179111 100644
|
index 103ee42f67177..6b73e9179111c 100644
|
||||||
--- a/drivers/pci/probe.c
|
--- a/drivers/pci/probe.c
|
||||||
+++ b/drivers/pci/probe.c
|
+++ b/drivers/pci/probe.c
|
||||||
@@ -20,7 +20,6 @@
|
@@ -20,7 +20,6 @@
|
||||||
|
@ -56,7 +56,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 27 insertions(+), 4 deletions(-)
|
1 file changed, 27 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
|
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
|
||||||
index 6b73e9179111..50eef5b211f4 100644
|
index 6b73e9179111c..50eef5b211f48 100644
|
||||||
--- a/drivers/pci/probe.c
|
--- a/drivers/pci/probe.c
|
||||||
+++ b/drivers/pci/probe.c
|
+++ b/drivers/pci/probe.c
|
||||||
@@ -883,11 +883,11 @@ static void pci_set_bus_msi_domain(struct pci_bus *bus)
|
@@ -883,11 +883,11 @@ static void pci_set_bus_msi_domain(struct pci_bus *bus)
|
||||||
|
@ -14,7 +14,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
|
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
|
||||||
index dbbd243c865f..406d781fa9ff 100644
|
index dbbd243c865f0..406d781fa9ffc 100644
|
||||||
--- a/lib/Kconfig.debug
|
--- a/lib/Kconfig.debug
|
||||||
+++ b/lib/Kconfig.debug
|
+++ b/lib/Kconfig.debug
|
||||||
@@ -331,7 +331,7 @@ config PAHOLE_HAS_SPLIT_BTF
|
@@ -331,7 +331,7 @@ config PAHOLE_HAS_SPLIT_BTF
|
||||||
|
@ -22,7 +22,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
4 files changed, 8 insertions(+), 16 deletions(-)
|
4 files changed, 8 insertions(+), 16 deletions(-)
|
||||||
|
|
||||||
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
|
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
|
||||||
index 3ee4c1217b63..0e15a9345966 100644
|
index 3ee4c1217b636..0e15a93459665 100644
|
||||||
--- a/block/blk-cgroup.c
|
--- a/block/blk-cgroup.c
|
||||||
+++ b/block/blk-cgroup.c
|
+++ b/block/blk-cgroup.c
|
||||||
@@ -887,7 +887,6 @@ static void blkcg_print_one_stat(struct blkcg_gq *blkg, struct seq_file *s)
|
@@ -887,7 +887,6 @@ static void blkcg_print_one_stat(struct blkcg_gq *blkg, struct seq_file *s)
|
||||||
@ -64,7 +64,7 @@ index 3ee4c1217b63..0e15a9345966 100644
|
|||||||
|
|
||||||
static int blkcg_print_stat(struct seq_file *sf, void *v)
|
static int blkcg_print_stat(struct seq_file *sf, void *v)
|
||||||
diff --git a/block/blk-iocost.c b/block/blk-iocost.c
|
diff --git a/block/blk-iocost.c b/block/blk-iocost.c
|
||||||
index f95feabb3ca8..94d1824906c7 100644
|
index f95feabb3ca88..94d1824906c7a 100644
|
||||||
--- a/block/blk-iocost.c
|
--- a/block/blk-iocost.c
|
||||||
+++ b/block/blk-iocost.c
|
+++ b/block/blk-iocost.c
|
||||||
@@ -3021,13 +3021,13 @@ static void ioc_pd_free(struct blkg_policy_data *pd)
|
@@ -3021,13 +3021,13 @@ static void ioc_pd_free(struct blkg_policy_data *pd)
|
||||||
@ -92,7 +92,7 @@ index f95feabb3ca8..94d1824906c7 100644
|
|||||||
|
|
||||||
static u64 ioc_weight_prfill(struct seq_file *sf, struct blkg_policy_data *pd,
|
static u64 ioc_weight_prfill(struct seq_file *sf, struct blkg_policy_data *pd,
|
||||||
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c
|
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c
|
||||||
index bdef8395af6e..a5f13743a280 100644
|
index bdef8395af6e7..a5f13743a2800 100644
|
||||||
--- a/block/blk-iolatency.c
|
--- a/block/blk-iolatency.c
|
||||||
+++ b/block/blk-iolatency.c
|
+++ b/block/blk-iolatency.c
|
||||||
@@ -906,7 +906,7 @@ static int iolatency_print_limit(struct seq_file *sf, void *v)
|
@@ -906,7 +906,7 @@ static int iolatency_print_limit(struct seq_file *sf, void *v)
|
||||||
@ -133,7 +133,7 @@ index bdef8395af6e..a5f13743a280 100644
|
|||||||
|
|
||||||
static struct blkg_policy_data *iolatency_pd_alloc(gfp_t gfp,
|
static struct blkg_policy_data *iolatency_pd_alloc(gfp_t gfp,
|
||||||
diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h
|
diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h
|
||||||
index bc5c04d711bb..618359e3beca 100644
|
index bc5c04d711bbc..618359e3becab 100644
|
||||||
--- a/include/linux/blk-cgroup.h
|
--- a/include/linux/blk-cgroup.h
|
||||||
+++ b/include/linux/blk-cgroup.h
|
+++ b/include/linux/blk-cgroup.h
|
||||||
@@ -153,7 +153,7 @@ typedef void (blkcg_pol_online_pd_fn)(struct blkg_policy_data *pd);
|
@@ -153,7 +153,7 @@ typedef void (blkcg_pol_online_pd_fn)(struct blkg_policy_data *pd);
|
||||||
|
@ -20,7 +20,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/drivers/firmware/sysfb_simplefb.c b/drivers/firmware/sysfb_simplefb.c
|
diff --git a/drivers/firmware/sysfb_simplefb.c b/drivers/firmware/sysfb_simplefb.c
|
||||||
index fd4fa923088a..ca907f7e76c6 100644
|
index fd4fa923088af..ca907f7e76c65 100644
|
||||||
--- a/drivers/firmware/sysfb_simplefb.c
|
--- a/drivers/firmware/sysfb_simplefb.c
|
||||||
+++ b/drivers/firmware/sysfb_simplefb.c
|
+++ b/drivers/firmware/sysfb_simplefb.c
|
||||||
@@ -99,7 +99,7 @@ __init struct platform_device *sysfb_create_simplefb(const struct screen_info *s
|
@@ -99,7 +99,7 @@ __init struct platform_device *sysfb_create_simplefb(const struct screen_info *s
|
||||||
|
@ -19,7 +19,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 17 insertions(+), 5 deletions(-)
|
1 file changed, 17 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
diff --git a/drivers/gpu/drm/tiny/simpledrm.c b/drivers/gpu/drm/tiny/simpledrm.c
|
diff --git a/drivers/gpu/drm/tiny/simpledrm.c b/drivers/gpu/drm/tiny/simpledrm.c
|
||||||
index f3c2c173ca4b..da58c0d0f44d 100644
|
index f3c2c173ca4b5..da58c0d0f44d8 100644
|
||||||
--- a/drivers/gpu/drm/tiny/simpledrm.c
|
--- a/drivers/gpu/drm/tiny/simpledrm.c
|
||||||
+++ b/drivers/gpu/drm/tiny/simpledrm.c
|
+++ b/drivers/gpu/drm/tiny/simpledrm.c
|
||||||
@@ -525,21 +525,33 @@ static int simpledrm_device_init_mm(struct simpledrm_device *sdev)
|
@@ -525,21 +525,33 @@ static int simpledrm_device_init_mm(struct simpledrm_device *sdev)
|
||||||
|
@ -18,7 +18,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 45 insertions(+), 20 deletions(-)
|
1 file changed, 45 insertions(+), 20 deletions(-)
|
||||||
|
|
||||||
diff --git a/drivers/video/fbdev/simplefb.c b/drivers/video/fbdev/simplefb.c
|
diff --git a/drivers/video/fbdev/simplefb.c b/drivers/video/fbdev/simplefb.c
|
||||||
index a2e3a4690025..8acfb12abfee 100644
|
index a2e3a46900252..8acfb12abfee6 100644
|
||||||
--- a/drivers/video/fbdev/simplefb.c
|
--- a/drivers/video/fbdev/simplefb.c
|
||||||
+++ b/drivers/video/fbdev/simplefb.c
|
+++ b/drivers/video/fbdev/simplefb.c
|
||||||
@@ -66,7 +66,21 @@ static int simplefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
|
@@ -66,7 +66,21 @@ static int simplefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
|
||||||
|
@ -21,7 +21,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
3 files changed, 11 insertions(+), 1 deletion(-)
|
3 files changed, 11 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
|
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
|
||||||
index 090b16890e3d..f303e96ce165 100644
|
index 090b16890e3d6..f303e96ce165b 100644
|
||||||
--- a/fs/nfs/client.c
|
--- a/fs/nfs/client.c
|
||||||
+++ b/fs/nfs/client.c
|
+++ b/fs/nfs/client.c
|
||||||
@@ -861,7 +861,8 @@ int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs
|
@@ -861,7 +861,8 @@ int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs
|
||||||
@ -35,7 +35,7 @@ index 090b16890e3d..f303e96ce165 100644
|
|||||||
if (error < 0)
|
if (error < 0)
|
||||||
return error;
|
return error;
|
||||||
diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c
|
diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c
|
||||||
index fb3cad38b149..0166370f088e 100644
|
index fb3cad38b1497..0166370f088e9 100644
|
||||||
--- a/fs/nfs/fs_context.c
|
--- a/fs/nfs/fs_context.c
|
||||||
+++ b/fs/nfs/fs_context.c
|
+++ b/fs/nfs/fs_context.c
|
||||||
@@ -79,6 +79,7 @@ enum nfs_param {
|
@@ -79,6 +79,7 @@ enum nfs_param {
|
||||||
@ -68,7 +68,7 @@ index fb3cad38b149..0166370f088e 100644
|
|||||||
if (result.negated)
|
if (result.negated)
|
||||||
ctx->flags |= NFS_MOUNT_NOAC;
|
ctx->flags |= NFS_MOUNT_NOAC;
|
||||||
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
|
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
|
||||||
index da9ef0ab9b4b..5336e494703b 100644
|
index da9ef0ab9b4b6..5336e494703bd 100644
|
||||||
--- a/include/linux/nfs_fs_sb.h
|
--- a/include/linux/nfs_fs_sb.h
|
||||||
+++ b/include/linux/nfs_fs_sb.h
|
+++ b/include/linux/nfs_fs_sb.h
|
||||||
@@ -156,6 +156,7 @@ struct nfs_server {
|
@@ -156,6 +156,7 @@ struct nfs_server {
|
||||||
|
@ -14,7 +14,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
2 files changed, 18 insertions(+)
|
2 files changed, 18 insertions(+)
|
||||||
|
|
||||||
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
|
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
|
||||||
index c6c58f01067f..f8ef2edf8abf 100644
|
index c6c58f01067f4..f8ef2edf8abf2 100644
|
||||||
--- a/drivers/edac/amd64_edac.c
|
--- a/drivers/edac/amd64_edac.c
|
||||||
+++ b/drivers/edac/amd64_edac.c
|
+++ b/drivers/edac/amd64_edac.c
|
||||||
@@ -2660,6 +2660,16 @@ static struct amd64_family_type family_types[] = {
|
@@ -2660,6 +2660,16 @@ static struct amd64_family_type family_types[] = {
|
||||||
@ -47,7 +47,7 @@ index c6c58f01067f..f8ef2edf8abf 100644
|
|||||||
fam_type = &family_types[F19_M10H_CPUS];
|
fam_type = &family_types[F19_M10H_CPUS];
|
||||||
pvt->ops = &family_types[F19_M10H_CPUS].ops;
|
pvt->ops = &family_types[F19_M10H_CPUS].ops;
|
||||||
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h
|
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h
|
||||||
index 650cab401e21..352bda9803f6 100644
|
index 650cab401e212..352bda9803f6c 100644
|
||||||
--- a/drivers/edac/amd64_edac.h
|
--- a/drivers/edac/amd64_edac.h
|
||||||
+++ b/drivers/edac/amd64_edac.h
|
+++ b/drivers/edac/amd64_edac.h
|
||||||
@@ -128,6 +128,8 @@
|
@@ -128,6 +128,8 @@
|
||||||
|
@ -18,7 +18,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
2 files changed, 11 insertions(+), 3 deletions(-)
|
2 files changed, 11 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/arch/x86/kvm/vmx/vmcs12.h b/arch/x86/kvm/vmx/vmcs12.h
|
diff --git a/arch/x86/kvm/vmx/vmcs12.h b/arch/x86/kvm/vmx/vmcs12.h
|
||||||
index 2a45f026ee11..ba8617964982 100644
|
index 2a45f026ee11d..ba8617964982a 100644
|
||||||
--- a/arch/x86/kvm/vmx/vmcs12.h
|
--- a/arch/x86/kvm/vmx/vmcs12.h
|
||||||
+++ b/arch/x86/kvm/vmx/vmcs12.h
|
+++ b/arch/x86/kvm/vmx/vmcs12.h
|
||||||
@@ -208,9 +208,8 @@ struct __packed vmcs12 {
|
@@ -208,9 +208,8 @@ struct __packed vmcs12 {
|
||||||
@ -34,7 +34,7 @@ index 2a45f026ee11..ba8617964982 100644
|
|||||||
static inline void vmx_check_vmcs12_offsets(void)
|
static inline void vmx_check_vmcs12_offsets(void)
|
||||||
{
|
{
|
||||||
diff --git a/include/linux/build_bug.h b/include/linux/build_bug.h
|
diff --git a/include/linux/build_bug.h b/include/linux/build_bug.h
|
||||||
index e3a0be2c90ad..3aa3640f8c18 100644
|
index e3a0be2c90ad9..3aa3640f8c181 100644
|
||||||
--- a/include/linux/build_bug.h
|
--- a/include/linux/build_bug.h
|
||||||
+++ b/include/linux/build_bug.h
|
+++ b/include/linux/build_bug.h
|
||||||
@@ -77,4 +77,13 @@
|
@@ -77,4 +77,13 @@
|
||||||
|
@ -17,7 +17,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 5 insertions(+)
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
||||||
index cb96e4354f31..23e4fce033a3 100644
|
index cb96e4354f317..23e4fce033a34 100644
|
||||||
--- a/arch/x86/kvm/emulate.c
|
--- a/arch/x86/kvm/emulate.c
|
||||||
+++ b/arch/x86/kvm/emulate.c
|
+++ b/arch/x86/kvm/emulate.c
|
||||||
@@ -2638,6 +2638,11 @@ static int em_rsm(struct x86_emulate_ctxt *ctxt)
|
@@ -2638,6 +2638,11 @@ static int em_rsm(struct x86_emulate_ctxt *ctxt)
|
||||||
|
@ -17,7 +17,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
3 files changed, 225 insertions(+)
|
3 files changed, 225 insertions(+)
|
||||||
|
|
||||||
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
||||||
index 23e4fce033a3..f169be004aab 100644
|
index 23e4fce033a34..f169be004aabd 100644
|
||||||
--- a/arch/x86/kvm/emulate.c
|
--- a/arch/x86/kvm/emulate.c
|
||||||
+++ b/arch/x86/kvm/emulate.c
|
+++ b/arch/x86/kvm/emulate.c
|
||||||
@@ -5829,3 +5829,9 @@ bool emulator_can_use_gpa(struct x86_emulate_ctxt *ctxt)
|
@@ -5829,3 +5829,9 @@ bool emulator_can_use_gpa(struct x86_emulate_ctxt *ctxt)
|
||||||
@ -31,7 +31,7 @@ index 23e4fce033a3..f169be004aab 100644
|
|||||||
+ __check_smram64_offsets();
|
+ __check_smram64_offsets();
|
||||||
+}
|
+}
|
||||||
diff --git a/arch/x86/kvm/kvm_emulate.h b/arch/x86/kvm/kvm_emulate.h
|
diff --git a/arch/x86/kvm/kvm_emulate.h b/arch/x86/kvm/kvm_emulate.h
|
||||||
index fb09cd22cb7f..0b2bbcce321a 100644
|
index fb09cd22cb7f5..0b2bbcce321ab 100644
|
||||||
--- a/arch/x86/kvm/kvm_emulate.h
|
--- a/arch/x86/kvm/kvm_emulate.h
|
||||||
+++ b/arch/x86/kvm/kvm_emulate.h
|
+++ b/arch/x86/kvm/kvm_emulate.h
|
||||||
@@ -13,6 +13,7 @@
|
@@ -13,6 +13,7 @@
|
||||||
@ -267,10 +267,10 @@ index fb09cd22cb7f..0b2bbcce321a 100644
|
|||||||
#if defined(CONFIG_X86_32)
|
#if defined(CONFIG_X86_32)
|
||||||
#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT32
|
#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT32
|
||||||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
||||||
index 092aad38762e..137da3a91d13 100644
|
index 8ad44be86f9c5..83305ad9a60c3 100644
|
||||||
--- a/arch/x86/kvm/x86.c
|
--- a/arch/x86/kvm/x86.c
|
||||||
+++ b/arch/x86/kvm/x86.c
|
+++ b/arch/x86/kvm/x86.c
|
||||||
@@ -12660,6 +12660,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_vmgexit_msr_protocol_exit);
|
@@ -12658,6 +12658,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_vmgexit_msr_protocol_exit);
|
||||||
static int __init kvm_x86_init(void)
|
static int __init kvm_x86_init(void)
|
||||||
{
|
{
|
||||||
kvm_mmu_x86_module_init();
|
kvm_mmu_x86_module_init();
|
||||||
|
@ -17,7 +17,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
6 files changed, 28 insertions(+), 20 deletions(-)
|
6 files changed, 28 insertions(+), 20 deletions(-)
|
||||||
|
|
||||||
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
|
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
|
||||||
index ba9fac12562a..3c97449cd652 100644
|
index ba9fac12562a6..3c97449cd6528 100644
|
||||||
--- a/arch/x86/include/asm/kvm_host.h
|
--- a/arch/x86/include/asm/kvm_host.h
|
||||||
+++ b/arch/x86/include/asm/kvm_host.h
|
+++ b/arch/x86/include/asm/kvm_host.h
|
||||||
@@ -200,6 +200,7 @@ typedef enum exit_fastpath_completion fastpath_t;
|
@@ -200,6 +200,7 @@ typedef enum exit_fastpath_completion fastpath_t;
|
||||||
@ -40,7 +40,7 @@ index ba9fac12562a..3c97449cd652 100644
|
|||||||
|
|
||||||
int (*mem_enc_op)(struct kvm *kvm, void __user *argp);
|
int (*mem_enc_op)(struct kvm *kvm, void __user *argp);
|
||||||
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
||||||
index f169be004aab..d3cc1b8e2ea6 100644
|
index f169be004aabd..d3cc1b8e2ea61 100644
|
||||||
--- a/arch/x86/kvm/emulate.c
|
--- a/arch/x86/kvm/emulate.c
|
||||||
+++ b/arch/x86/kvm/emulate.c
|
+++ b/arch/x86/kvm/emulate.c
|
||||||
@@ -2566,16 +2566,18 @@ static int rsm_load_state_64(struct x86_emulate_ctxt *ctxt,
|
@@ -2566,16 +2566,18 @@ static int rsm_load_state_64(struct x86_emulate_ctxt *ctxt,
|
||||||
@ -84,7 +84,7 @@ index f169be004aab..d3cc1b8e2ea6 100644
|
|||||||
if (ret != X86EMUL_CONTINUE)
|
if (ret != X86EMUL_CONTINUE)
|
||||||
goto emulate_shutdown;
|
goto emulate_shutdown;
|
||||||
diff --git a/arch/x86/kvm/kvm_emulate.h b/arch/x86/kvm/kvm_emulate.h
|
diff --git a/arch/x86/kvm/kvm_emulate.h b/arch/x86/kvm/kvm_emulate.h
|
||||||
index 0b2bbcce321a..3b37b3e17379 100644
|
index 0b2bbcce321ab..3b37b3e173791 100644
|
||||||
--- a/arch/x86/kvm/kvm_emulate.h
|
--- a/arch/x86/kvm/kvm_emulate.h
|
||||||
+++ b/arch/x86/kvm/kvm_emulate.h
|
+++ b/arch/x86/kvm/kvm_emulate.h
|
||||||
@@ -19,6 +19,7 @@
|
@@ -19,6 +19,7 @@
|
||||||
@ -105,7 +105,7 @@ index 0b2bbcce321a..3b37b3e17379 100644
|
|||||||
int (*set_xcr)(struct x86_emulate_ctxt *ctxt, u32 index, u64 xcr);
|
int (*set_xcr)(struct x86_emulate_ctxt *ctxt, u32 index, u64 xcr);
|
||||||
};
|
};
|
||||||
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
|
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
|
||||||
index 7c7aef30db04..5ad5882c5ddf 100644
|
index 7c7aef30db049..5ad5882c5ddfb 100644
|
||||||
--- a/arch/x86/kvm/svm/svm.c
|
--- a/arch/x86/kvm/svm/svm.c
|
||||||
+++ b/arch/x86/kvm/svm/svm.c
|
+++ b/arch/x86/kvm/svm/svm.c
|
||||||
@@ -4326,12 +4326,14 @@ static int svm_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection)
|
@@ -4326,12 +4326,14 @@ static int svm_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection)
|
||||||
@ -143,7 +143,7 @@ index 7c7aef30db04..5ad5882c5ddf 100644
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
|
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
|
||||||
index 076779033165..95c9ae69fbe7 100644
|
index 0767790331654..95c9ae69fbe74 100644
|
||||||
--- a/arch/x86/kvm/vmx/vmx.c
|
--- a/arch/x86/kvm/vmx/vmx.c
|
||||||
+++ b/arch/x86/kvm/vmx/vmx.c
|
+++ b/arch/x86/kvm/vmx/vmx.c
|
||||||
@@ -7648,7 +7648,7 @@ static int vmx_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection)
|
@@ -7648,7 +7648,7 @@ static int vmx_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection)
|
||||||
@ -165,10 +165,10 @@ index 076779033165..95c9ae69fbe7 100644
|
|||||||
struct vcpu_vmx *vmx = to_vmx(vcpu);
|
struct vcpu_vmx *vmx = to_vmx(vcpu);
|
||||||
int ret;
|
int ret;
|
||||||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
||||||
index 137da3a91d13..e8a86fc933f4 100644
|
index 83305ad9a60c3..b004a766db84b 100644
|
||||||
--- a/arch/x86/kvm/x86.c
|
--- a/arch/x86/kvm/x86.c
|
||||||
+++ b/arch/x86/kvm/x86.c
|
+++ b/arch/x86/kvm/x86.c
|
||||||
@@ -7454,9 +7454,9 @@ static void emulator_exiting_smm(struct x86_emulate_ctxt *ctxt)
|
@@ -7452,9 +7452,9 @@ static void emulator_exiting_smm(struct x86_emulate_ctxt *ctxt)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int emulator_leave_smm(struct x86_emulate_ctxt *ctxt,
|
static int emulator_leave_smm(struct x86_emulate_ctxt *ctxt,
|
||||||
@ -180,7 +180,7 @@ index 137da3a91d13..e8a86fc933f4 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void emulator_triple_fault(struct x86_emulate_ctxt *ctxt)
|
static void emulator_triple_fault(struct x86_emulate_ctxt *ctxt)
|
||||||
@@ -9335,25 +9335,25 @@ static void enter_smm(struct kvm_vcpu *vcpu)
|
@@ -9333,25 +9333,25 @@ static void enter_smm(struct kvm_vcpu *vcpu)
|
||||||
struct kvm_segment cs, ds;
|
struct kvm_segment cs, ds;
|
||||||
struct desc_ptr dt;
|
struct desc_ptr dt;
|
||||||
unsigned long cr0;
|
unsigned long cr0;
|
||||||
|
@ -15,7 +15,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
2 files changed, 60 insertions(+), 96 deletions(-)
|
2 files changed, 60 insertions(+), 96 deletions(-)
|
||||||
|
|
||||||
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
||||||
index d3cc1b8e2ea6..0dd18d66f3b7 100644
|
index d3cc1b8e2ea61..0dd18d66f3b7d 100644
|
||||||
--- a/arch/x86/kvm/emulate.c
|
--- a/arch/x86/kvm/emulate.c
|
||||||
+++ b/arch/x86/kvm/emulate.c
|
+++ b/arch/x86/kvm/emulate.c
|
||||||
@@ -2343,25 +2343,17 @@ static void rsm_set_desc_flags(struct desc_struct *desc, u32 flags)
|
@@ -2343,25 +2343,17 @@ static void rsm_set_desc_flags(struct desc_struct *desc, u32 flags)
|
||||||
@ -145,10 +145,10 @@ index d3cc1b8e2ea6..0dd18d66f3b7 100644
|
|||||||
if (ret != X86EMUL_CONTINUE)
|
if (ret != X86EMUL_CONTINUE)
|
||||||
goto emulate_shutdown;
|
goto emulate_shutdown;
|
||||||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
||||||
index e8a86fc933f4..cebe7406d9b8 100644
|
index b004a766db84b..47ba120a0abee 100644
|
||||||
--- a/arch/x86/kvm/x86.c
|
--- a/arch/x86/kvm/x86.c
|
||||||
+++ b/arch/x86/kvm/x86.c
|
+++ b/arch/x86/kvm/x86.c
|
||||||
@@ -9189,22 +9189,18 @@ static u32 enter_smm_get_segment_flags(struct kvm_segment *seg)
|
@@ -9187,22 +9187,18 @@ static u32 enter_smm_get_segment_flags(struct kvm_segment *seg)
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ index e8a86fc933f4..cebe7406d9b8 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
@@ -9225,54 +9221,47 @@ static void enter_smm_save_seg_64(struct kvm_vcpu *vcpu, char *buf, int n)
|
@@ -9223,54 +9219,47 @@ static void enter_smm_save_seg_64(struct kvm_vcpu *vcpu, char *buf, int n)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ index e8a86fc933f4..cebe7406d9b8 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
@@ -9343,7 +9332,7 @@ static void enter_smm(struct kvm_vcpu *vcpu)
|
@@ -9341,7 +9330,7 @@ static void enter_smm(struct kvm_vcpu *vcpu)
|
||||||
enter_smm_save_state_64(vcpu, (char *)&smram);
|
enter_smm_save_state_64(vcpu, (char *)&smram);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@ -16,7 +16,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
2 files changed, 62 insertions(+), 101 deletions(-)
|
2 files changed, 62 insertions(+), 101 deletions(-)
|
||||||
|
|
||||||
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
||||||
index 0dd18d66f3b7..37c1662b5508 100644
|
index 0dd18d66f3b7d..37c1662b55082 100644
|
||||||
--- a/arch/x86/kvm/emulate.c
|
--- a/arch/x86/kvm/emulate.c
|
||||||
+++ b/arch/x86/kvm/emulate.c
|
+++ b/arch/x86/kvm/emulate.c
|
||||||
@@ -2357,24 +2357,16 @@ static void rsm_load_seg_32(struct x86_emulate_ctxt *ctxt,
|
@@ -2357,24 +2357,16 @@ static void rsm_load_seg_32(struct x86_emulate_ctxt *ctxt,
|
||||||
@ -154,10 +154,10 @@ index 0dd18d66f3b7..37c1662b5508 100644
|
|||||||
#endif
|
#endif
|
||||||
ret = rsm_load_state_32(ctxt, &smram.smram32);
|
ret = rsm_load_state_32(ctxt, &smram.smram32);
|
||||||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
||||||
index cebe7406d9b8..88d78b9bfd43 100644
|
index 47ba120a0abee..2b1be90f36031 100644
|
||||||
--- a/arch/x86/kvm/x86.c
|
--- a/arch/x86/kvm/x86.c
|
||||||
+++ b/arch/x86/kvm/x86.c
|
+++ b/arch/x86/kvm/x86.c
|
||||||
@@ -9204,20 +9204,17 @@ static void enter_smm_save_seg_32(struct kvm_vcpu *vcpu,
|
@@ -9202,20 +9202,17 @@ static void enter_smm_save_seg_32(struct kvm_vcpu *vcpu,
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
@ -185,7 +185,7 @@ index cebe7406d9b8..88d78b9bfd43 100644
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -9265,57 +9262,51 @@ static void enter_smm_save_state_32(struct kvm_vcpu *vcpu, struct kvm_smram_stat
|
@@ -9263,57 +9260,51 @@ static void enter_smm_save_state_32(struct kvm_vcpu *vcpu, struct kvm_smram_stat
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
@ -268,7 +268,7 @@ index cebe7406d9b8..88d78b9bfd43 100644
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -9329,7 +9320,7 @@ static void enter_smm(struct kvm_vcpu *vcpu)
|
@@ -9327,7 +9318,7 @@ static void enter_smm(struct kvm_vcpu *vcpu)
|
||||||
memset(smram.bytes, 0, sizeof(smram.bytes));
|
memset(smram.bytes, 0, sizeof(smram.bytes));
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
if (guest_cpuid_has(vcpu, X86_FEATURE_LM))
|
if (guest_cpuid_has(vcpu, X86_FEATURE_LM))
|
||||||
|
@ -17,7 +17,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
2 files changed, 6 insertions(+), 21 deletions(-)
|
2 files changed, 6 insertions(+), 21 deletions(-)
|
||||||
|
|
||||||
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
|
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
|
||||||
index 3c97449cd652..f71db6a29835 100644
|
index 3c97449cd6528..f71db6a29835e 100644
|
||||||
--- a/arch/x86/include/asm/kvm_host.h
|
--- a/arch/x86/include/asm/kvm_host.h
|
||||||
+++ b/arch/x86/include/asm/kvm_host.h
|
+++ b/arch/x86/include/asm/kvm_host.h
|
||||||
@@ -1935,12 +1935,6 @@ static inline int kvm_cpu_get_apicid(int mps_cpu)
|
@@ -1935,12 +1935,6 @@ static inline int kvm_cpu_get_apicid(int mps_cpu)
|
||||||
@ -34,7 +34,7 @@ index 3c97449cd652..f71db6a29835 100644
|
|||||||
|
|
||||||
int alloc_all_memslots_rmaps(struct kvm *kvm);
|
int alloc_all_memslots_rmaps(struct kvm *kvm);
|
||||||
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
|
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
|
||||||
index 5ad5882c5ddf..b03bbe3383fe 100644
|
index 5ad5882c5ddfb..b03bbe3383fe0 100644
|
||||||
--- a/arch/x86/kvm/svm/svm.c
|
--- a/arch/x86/kvm/svm/svm.c
|
||||||
+++ b/arch/x86/kvm/svm/svm.c
|
+++ b/arch/x86/kvm/svm/svm.c
|
||||||
@@ -4332,15 +4332,11 @@ static int svm_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram)
|
@@ -4332,15 +4332,11 @@ static int svm_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram)
|
||||||
|
@ -19,7 +19,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
1 file changed, 9 insertions(+)
|
1 file changed, 9 insertions(+)
|
||||||
|
|
||||||
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
|
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
|
||||||
index b03bbe3383fe..9c50feb642e2 100644
|
index b03bbe3383fe0..9c50feb642e20 100644
|
||||||
--- a/arch/x86/kvm/svm/svm.c
|
--- a/arch/x86/kvm/svm/svm.c
|
||||||
+++ b/arch/x86/kvm/svm/svm.c
|
+++ b/arch/x86/kvm/svm/svm.c
|
||||||
@@ -4335,6 +4335,15 @@ static int svm_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram)
|
@@ -4335,6 +4335,15 @@ static int svm_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram)
|
||||||
|
@ -30,7 +30,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|||||||
3 files changed, 32 insertions(+), 7 deletions(-)
|
3 files changed, 32 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
|
||||||
index 37c1662b5508..b70adbee03b7 100644
|
index 37c1662b55082..b70adbee03b75 100644
|
||||||
--- a/arch/x86/kvm/emulate.c
|
--- a/arch/x86/kvm/emulate.c
|
||||||
+++ b/arch/x86/kvm/emulate.c
|
+++ b/arch/x86/kvm/emulate.c
|
||||||
@@ -2419,7 +2419,7 @@ static int rsm_load_state_32(struct x86_emulate_ctxt *ctxt,
|
@@ -2419,7 +2419,7 @@ static int rsm_load_state_32(struct x86_emulate_ctxt *ctxt,
|
||||||
@ -72,7 +72,7 @@ index 37c1662b5508..b70adbee03b7 100644
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
diff --git a/arch/x86/kvm/kvm_emulate.h b/arch/x86/kvm/kvm_emulate.h
|
diff --git a/arch/x86/kvm/kvm_emulate.h b/arch/x86/kvm/kvm_emulate.h
|
||||||
index 3b37b3e17379..a64c190abf28 100644
|
index 3b37b3e173791..a64c190abf28f 100644
|
||||||
--- a/arch/x86/kvm/kvm_emulate.h
|
--- a/arch/x86/kvm/kvm_emulate.h
|
||||||
+++ b/arch/x86/kvm/kvm_emulate.h
|
+++ b/arch/x86/kvm/kvm_emulate.h
|
||||||
@@ -231,6 +231,7 @@ struct x86_emulate_ops {
|
@@ -231,6 +231,7 @@ struct x86_emulate_ops {
|
||||||
@ -128,10 +128,10 @@ index 3b37b3e17379..a64c190abf28 100644
|
|||||||
__CHECK_SMRAM64_OFFSET(auto_hlt_restart, 0xFEC9);
|
__CHECK_SMRAM64_OFFSET(auto_hlt_restart, 0xFEC9);
|
||||||
__CHECK_SMRAM64_OFFSET(reserved2, 0xFECA);
|
__CHECK_SMRAM64_OFFSET(reserved2, 0xFECA);
|
||||||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
|
||||||
index 88d78b9bfd43..93fff459b95b 100644
|
index 2b1be90f36031..19bd000bebcff 100644
|
||||||
--- a/arch/x86/kvm/x86.c
|
--- a/arch/x86/kvm/x86.c
|
||||||
+++ b/arch/x86/kvm/x86.c
|
+++ b/arch/x86/kvm/x86.c
|
||||||
@@ -7441,6 +7441,11 @@ static void emulator_set_nmi_mask(struct x86_emulate_ctxt *ctxt, bool masked)
|
@@ -7439,6 +7439,11 @@ static void emulator_set_nmi_mask(struct x86_emulate_ctxt *ctxt, bool masked)
|
||||||
static_call(kvm_x86_set_nmi_mask)(emul_to_vcpu(ctxt), masked);
|
static_call(kvm_x86_set_nmi_mask)(emul_to_vcpu(ctxt), masked);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ index 88d78b9bfd43..93fff459b95b 100644
|
|||||||
static unsigned emulator_get_hflags(struct x86_emulate_ctxt *ctxt)
|
static unsigned emulator_get_hflags(struct x86_emulate_ctxt *ctxt)
|
||||||
{
|
{
|
||||||
return emul_to_vcpu(ctxt)->arch.hflags;
|
return emul_to_vcpu(ctxt)->arch.hflags;
|
||||||
@@ -7510,6 +7515,7 @@ static const struct x86_emulate_ops emulate_ops = {
|
@@ -7508,6 +7513,7 @@ static const struct x86_emulate_ops emulate_ops = {
|
||||||
.guest_has_fxsr = emulator_guest_has_fxsr,
|
.guest_has_fxsr = emulator_guest_has_fxsr,
|
||||||
.guest_has_rdpid = emulator_guest_has_rdpid,
|
.guest_has_rdpid = emulator_guest_has_rdpid,
|
||||||
.set_nmi_mask = emulator_set_nmi_mask,
|
.set_nmi_mask = emulator_set_nmi_mask,
|
||||||
@ -151,7 +151,7 @@ index 88d78b9bfd43..93fff459b95b 100644
|
|||||||
.get_hflags = emulator_get_hflags,
|
.get_hflags = emulator_get_hflags,
|
||||||
.exiting_smm = emulator_exiting_smm,
|
.exiting_smm = emulator_exiting_smm,
|
||||||
.leave_smm = emulator_leave_smm,
|
.leave_smm = emulator_leave_smm,
|
||||||
@@ -9259,6 +9265,8 @@ static void enter_smm_save_state_32(struct kvm_vcpu *vcpu, struct kvm_smram_stat
|
@@ -9257,6 +9263,8 @@ static void enter_smm_save_state_32(struct kvm_vcpu *vcpu, struct kvm_smram_stat
|
||||||
smram->cr4 = kvm_read_cr4(vcpu);
|
smram->cr4 = kvm_read_cr4(vcpu);
|
||||||
smram->smm_revision = 0x00020000;
|
smram->smm_revision = 0x00020000;
|
||||||
smram->smbase = vcpu->arch.smbase;
|
smram->smbase = vcpu->arch.smbase;
|
||||||
@ -160,7 +160,7 @@ index 88d78b9bfd43..93fff459b95b 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
@@ -9307,6 +9315,8 @@ static void enter_smm_save_state_64(struct kvm_vcpu *vcpu, struct kvm_smram_stat
|
@@ -9305,6 +9313,8 @@ static void enter_smm_save_state_64(struct kvm_vcpu *vcpu, struct kvm_smram_stat
|
||||||
enter_smm_save_seg_64(vcpu, &smram->ds, VCPU_SREG_DS);
|
enter_smm_save_seg_64(vcpu, &smram->ds, VCPU_SREG_DS);
|
||||||
enter_smm_save_seg_64(vcpu, &smram->fs, VCPU_SREG_FS);
|
enter_smm_save_seg_64(vcpu, &smram->fs, VCPU_SREG_FS);
|
||||||
enter_smm_save_seg_64(vcpu, &smram->gs, VCPU_SREG_GS);
|
enter_smm_save_seg_64(vcpu, &smram->gs, VCPU_SREG_GS);
|
||||||
@ -169,7 +169,7 @@ index 88d78b9bfd43..93fff459b95b 100644
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -9343,6 +9353,8 @@ static void enter_smm(struct kvm_vcpu *vcpu)
|
@@ -9341,6 +9351,8 @@ static void enter_smm(struct kvm_vcpu *vcpu)
|
||||||
kvm_set_rflags(vcpu, X86_EFLAGS_FIXED);
|
kvm_set_rflags(vcpu, X86_EFLAGS_FIXED);
|
||||||
kvm_rip_write(vcpu, 0x8000);
|
kvm_rip_write(vcpu, 0x8000);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user