Skip to content

Commit ecda85e

Browse files
jgross1ingomolnar
authored andcommitted
x86/lguest: Remove lguest support
Lguest seems to be rather unused these days. It has seen only patches ensuring it still builds the last two years and its official state is "Odd Fixes". Remove it in order to be able to clean up the paravirt code. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: boris.ostrovsky@oracle.com Cc: lguest@lists.ozlabs.org Cc: rusty@rustcorp.com.au Cc: xen-devel@lists.xenproject.org Link: http://lkml.kernel.org/r/20170816173157.8633-3-jgross@suse.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent edcb5cf commit ecda85e

43 files changed

Lines changed: 16 additions & 10502 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7640,17 +7640,6 @@ T: git git://linuxtv.org/mkrufky/tuners.git
76407640
S: Maintained
76417641
F: drivers/media/dvb-frontends/lgdt3305.*
76427642

7643-
LGUEST
7644-
M: Rusty Russell <rusty@rustcorp.com.au>
7645-
L: lguest@lists.ozlabs.org
7646-
W: http://lguest.ozlabs.org/
7647-
S: Odd Fixes
7648-
F: arch/x86/include/asm/lguest*.h
7649-
F: arch/x86/lguest/
7650-
F: drivers/lguest/
7651-
F: include/linux/lguest*.h
7652-
F: tools/lguest/
7653-
76547643
LIBATA PATA ARASAN COMPACT FLASH CONTROLLER
76557644
M: Viresh Kumar <vireshk@kernel.org>
76567645
L: linux-ide@vger.kernel.org

‎arch/x86/Kbuild‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ obj-$(CONFIG_XEN) += xen/
1010
# Hyper-V paravirtualization support
1111
obj-$(CONFIG_HYPERVISOR_GUEST) += hyperv/
1212

13-
# lguest paravirtualization support
14-
obj-$(CONFIG_LGUEST_GUEST) += lguest/
15-
1613
obj-y += realmode/
1714
obj-y += kernel/
1815
obj-y += mm/

‎arch/x86/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,6 @@ config KVM_DEBUG_FS
777777
Statistics are displayed in debugfs filesystem. Enabling this option
778778
may incur significant overhead.
779779

780-
source "arch/x86/lguest/Kconfig"
781-
782780
config PARAVIRT_TIME_ACCOUNTING
783781
bool "Paravirtual steal time accounting"
784782
depends on PARAVIRT

‎arch/x86/include/asm/lguest.h‎

Lines changed: 0 additions & 91 deletions
This file was deleted.

‎arch/x86/include/asm/lguest_hcall.h‎

Lines changed: 0 additions & 74 deletions
This file was deleted.

‎arch/x86/include/asm/processor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ static inline void sync_core(void)
662662
* In case NMI unmasking or performance ever becomes a problem,
663663
* the next best option appears to be MOV-to-CR2 and an
664664
* unconditional jump. That sequence also works on all CPUs,
665-
* but it will fault at CPL3 (i.e. Xen PV and lguest).
665+
* but it will fault at CPL3 (i.e. Xen PV).
666666
*
667667
* CPUID is the conventional way, but it's nasty: it doesn't
668668
* exist on some 486-like CPUs, and it usually exits to a

‎arch/x86/include/uapi/asm/bootparam.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ struct boot_params {
201201
*
202202
* @X86_SUBARCH_PC: Should be used if the hardware is enumerable using standard
203203
* PC mechanisms (PCI, ACPI) and doesn't need a special boot flow.
204-
* @X86_SUBARCH_LGUEST: Used for x86 hypervisor demo, lguest
204+
* @X86_SUBARCH_LGUEST: Used for x86 hypervisor demo, lguest, deprecated
205205
* @X86_SUBARCH_XEN: Used for Xen guest types which follow the PV boot path,
206206
* which start at asm startup_xen() entry point and later jump to the C
207207
* xen_start_kernel() entry point. Both domU and dom0 type of guests are

‎arch/x86/kernel/asm-offsets_32.c‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
#include <asm/ucontext.h>
66

7-
#include <linux/lguest.h>
8-
#include "../../../drivers/lguest/lg.h"
9-
107
#define __SYSCALL_I386(nr, sym, qual) [nr] = 1,
118
static char syscalls[] = {
129
#include <asm/syscalls_32.h>
@@ -62,23 +59,6 @@ void foo(void)
6259
OFFSET(stack_canary_offset, stack_canary, canary);
6360
#endif
6461

65-
#if defined(CONFIG_LGUEST) || defined(CONFIG_LGUEST_GUEST) || defined(CONFIG_LGUEST_MODULE)
66-
BLANK();
67-
OFFSET(LGUEST_DATA_irq_enabled, lguest_data, irq_enabled);
68-
OFFSET(LGUEST_DATA_irq_pending, lguest_data, irq_pending);
69-
70-
BLANK();
71-
OFFSET(LGUEST_PAGES_host_gdt_desc, lguest_pages, state.host_gdt_desc);
72-
OFFSET(LGUEST_PAGES_host_idt_desc, lguest_pages, state.host_idt_desc);
73-
OFFSET(LGUEST_PAGES_host_cr3, lguest_pages, state.host_cr3);
74-
OFFSET(LGUEST_PAGES_host_sp, lguest_pages, state.host_sp);
75-
OFFSET(LGUEST_PAGES_guest_gdt_desc, lguest_pages,state.guest_gdt_desc);
76-
OFFSET(LGUEST_PAGES_guest_idt_desc, lguest_pages,state.guest_idt_desc);
77-
OFFSET(LGUEST_PAGES_guest_gdt, lguest_pages, state.guest_gdt);
78-
OFFSET(LGUEST_PAGES_regs_trapnum, lguest_pages, regs.trapnum);
79-
OFFSET(LGUEST_PAGES_regs_errcode, lguest_pages, regs.errcode);
80-
OFFSET(LGUEST_PAGES_regs, lguest_pages, regs);
81-
#endif
8262
BLANK();
8363
DEFINE(__NR_syscall_max, sizeof(syscalls) - 1);
8464
DEFINE(NR_syscalls, sizeof(syscalls));

‎arch/x86/kernel/head_32.S‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ ENTRY(startup_32)
155155
jmp *%eax
156156

157157
.Lbad_subarch:
158-
WEAK(lguest_entry)
159158
WEAK(xen_entry)
160159
/* Unknown implementation; there's really
161160
nothing we can do at this point. */
@@ -165,7 +164,6 @@ WEAK(xen_entry)
165164

166165
subarch_entries:
167166
.long .Ldefault_entry /* normal x86/PC */
168-
.long lguest_entry /* lguest hypervisor */
169167
.long xen_entry /* Xen hypervisor */
170168
.long .Ldefault_entry /* Moorestown MID */
171169
num_subarch_entries = (. - subarch_entries) / 4

‎arch/x86/kernel/platform-quirks.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ void __init x86_early_init_platform_quirks(void)
1616
x86_platform.legacy.reserve_bios_regions = 1;
1717
break;
1818
case X86_SUBARCH_XEN:
19-
case X86_SUBARCH_LGUEST:
2019
x86_platform.legacy.devices.pnpbios = 0;
2120
x86_platform.legacy.rtc = 0;
2221
break;

0 commit comments

Comments
 (0)