1. 20 8月, 2015 1 次提交
    • D
      x86/xen: make CONFIG_XEN depend on CONFIG_X86_LOCAL_APIC · 87ffd2b9
      David Vrabel 提交于
      Since commit feb44f1f (x86/xen:
      Provide a "Xen PV" APIC driver to support >255 VCPUs) Xen guests need
      a full APIC driver and thus should depend on X86_LOCAL_APIC.
      
      This fixes an i386 build failure with !SMP && !CONFIG_X86_UP_APIC by
      disabling Xen support in this configuration.
      
      Users needing Xen support in a non-SMP i386 kernel will need to enable
      CONFIG_X86_UP_APIC.
      Signed-off-by: NDavid Vrabel <david.vrabel@citrix.com>
      Cc: <stable@vger.kernel.org>
      87ffd2b9
  2. 18 3月, 2014 1 次提交
    • M
      xen: remove XEN_PRIVILEGED_GUEST · 395edbb8
      Michael Opdenacker 提交于
      This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is
      used nowhere in the tree.
      
      We do know grub2 has a script that greps kernel configuration files for
      its macro. It shouldn't do that. As Linus summarized:
          This is a grub bug. It really is that simple. Treat it as one.
      
      Besides, grub2's grepping for that macro is actually superfluous. See,
      that script currently contains this test (simplified):
          grep -x CONFIG_XEN_DOM0=y $config || grep -x CONFIG_XEN_PRIVILEGED_GUEST=y $config
      
      But since XEN_DOM0 and XEN_PRIVILEGED_GUEST are by definition equal,
      removing XEN_PRIVILEGED_GUEST cannot influence this test.
      
      So there's no reason to not remove this symbol, like we do with all
      unused Kconfig symbols.
      
      [pebolle@tiscali.nl: rewrote commit explanation.]
      Signed-off-by: NMichael Opdenacker <michael.opdenacker@free-electrons.com>
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      395edbb8
  3. 28 2月, 2014 1 次提交
  4. 10 1月, 2014 1 次提交
  5. 06 1月, 2014 2 次提交
    • M
      xen/pvh: Support ParaVirtualized Hardware extensions (v3). · 4e903a20
      Mukesh Rathor 提交于
      PVH allows PV linux guest to utilize hardware extended capabilities,
      such as running MMU updates in a HVM container.
      
      The Xen side defines PVH as (from docs/misc/pvh-readme.txt,
      with modifications):
      
      "* the guest uses auto translate:
       - p2m is managed by Xen
       - pagetables are owned by the guest
       - mmu_update hypercall not available
      * it uses event callback and not vlapic emulation,
      * IDT is native, so set_trap_table hcall is also N/A for a PVH guest.
      
      For a full list of hcalls supported for PVH, see pvh_hypercall64_table
      in arch/x86/hvm/hvm.c in xen.  From the ABI prespective, it's mostly a
      PV guest with auto translate, although it does use hvm_op for setting
      callback vector."
      
      Use .ascii and .asciz to define xen feature string. Note, the PVH
      string must be in a single line (not multiple lines with \) to keep the
      assembler from putting null char after each string before \.
      This patch allows it to be configured and enabled.
      
      We also use introduce the 'XEN_ELFNOTE_SUPPORTED_FEATURES' ELF note to
      tell the hypervisor that 'hvm_callback_vector' is what the kernel
      needs. We can not put it in 'XEN_ELFNOTE_FEATURES' as older hypervisor
      parse fields they don't understand as errors and refuse to load
      the kernel. This work-around fixes the problem.
      Signed-off-by: NMukesh Rathor <mukesh.rathor@oracle.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Acked-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      4e903a20
    • M
      xen/pvh/x86: Define what an PVH guest is (v3). · ddc416cb
      Mukesh Rathor 提交于
      Which is a PV guest with auto page translation enabled
      and with vector callback. It is a cross between PVHVM and PV.
      
      The Xen side defines PVH as (from docs/misc/pvh-readme.txt,
      with modifications):
      
      "* the guest uses auto translate:
       - p2m is managed by Xen
       - pagetables are owned by the guest
       - mmu_update hypercall not available
      * it uses event callback and not vlapic emulation,
      * IDT is native, so set_trap_table hcall is also N/A for a PVH guest.
      
      For a full list of hcalls supported for PVH, see pvh_hypercall64_table
      in arch/x86/hvm/hvm.c in xen.  From the ABI prespective, it's mostly a
      PV guest with auto translate, although it does use hvm_op for setting
      callback vector."
      
      Also we use the PV cpuid, albeit we can use the HVM (native) cpuid.
      However, we do have a fair bit of filtering in the xen_cpuid and
      we can piggyback on that until the hypervisor/toolstack filters
      the appropiate cpuids. Once that is done we can swap over to
      use the native one.
      
      We setup a Kconfig entry that is disabled by default and
      cannot be enabled.
      
      Note that on ARM the concept of PVH is non-existent. As Ian
      put it: "an ARM guest is neither PV nor HVM nor PVHVM.
      It's a bit like PVH but is different also (it's further towards
      the H end of the spectrum than even PVH).". As such these
      options (PVHVM, PVH) are never enabled nor seen on ARM
      compilations.
      Signed-off-by: NMukesh Rathor <mukesh.rathor@oracle.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      ddc416cb
  6. 05 3月, 2013 1 次提交
  7. 30 11月, 2012 1 次提交
  8. 29 11月, 2012 1 次提交
  9. 22 11月, 2011 1 次提交
  10. 29 9月, 2011 1 次提交
  11. 10 8月, 2011 1 次提交
  12. 12 4月, 2011 1 次提交
  13. 15 3月, 2011 1 次提交
    • R
      PM: Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME) · 1eb208ae
      Rafael J. Wysocki 提交于
      From the users' point of view CONFIG_PM is really only used for
      making it possible to set CONFIG_SUSPEND, CONFIG_HIBERNATION,
      CONFIG_PM_RUNTIME and (surprisingly enough) CONFIG_XEN_SAVE_RESTORE
      (CONFIG_PM_OPP also depends on CONFIG_PM, but quite artificially).
      However, both CONFIG_SUSPEND and CONFIG_HIBERNATION require platform
      support (independent of CONFIG_PM) and it is not quite obvious that
      CONFIG_PM has to be set for CONFIG_XEN_SAVE_RESTORE to be available.
      Thus, from the users' point of view, it would be more logical to
      automatically select CONFIG_PM if any of the above options depending
      on it are set.
      
      Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME),
      which will cause it to be selected when any of CONFIG_SUSPEND,
      CONFIG_HIBERNATION, CONFIG_PM_RUNTIME, CONFIG_XEN_SAVE_RESTORE is
      set and will clarify its meaning.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      1eb208ae
  14. 14 3月, 2011 1 次提交
  15. 23 10月, 2010 2 次提交
    • S
      xen: introduce XEN_DOM0 as a silent option · 6b0661a5
      Stefano Stabellini 提交于
      Add XEN_DOM0 to arch/x86/xen/Kconfig as a silent compile time option
      that gets enabled when xen and basic x86, acpi and pci support are
      selected.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Reviewed-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      6b0661a5
    • J
      xen: convert p2m to a 3 level tree · 58e05027
      Jeremy Fitzhardinge 提交于
      Make the p2m structure a 3 level tree which covers the full possible
      physical space.
      
      The p2m structure contains mappings from the domain's pfns to system-wide
      mfns.  The structure has 3 levels and two roots.  The first root is for
      the domain's own use, and is linked with virtual addresses.  The second
      is all mfn references, and is used by Xen on save/restore to allow it to
      update the p2m mapping for the domain.
      
      At boot, the domain builder provides a simple flat p2m array for all the
      initially present pages.  We construct the two levels above that using
      the early_brk allocator.  After early boot time, set_phys_to_machine()
      will allocate any missing levels using the normal kernel allocator
      (at GFP_KERNEL, so it must be called in a normal blocking context).
      
      Because the early_brk() API requires us to pre-reserve the maximum amount
      of memory we could allocate, there is still a CONFIG_XEN_MAX_DOMAIN_MEMORY
      config option, but its only negative side-effect is to increase the
      kernel's apparent bss size.  However, since all unused brk memory is
      returned to the heap, there's no real downside to making it large.
      Signed-off-by: NJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
      58e05027
  16. 30 7月, 2010 1 次提交
  17. 23 2月, 2009 1 次提交
    • I
      x86: remove the Voyager 32-bit subarch · 965c7eca
      Ingo Molnar 提交于
      Impact: remove unused/broken code
      
      The Voyager subarch last built successfully on the v2.6.26 kernel
      and has been stale since then and does not build on the v2.6.27,
      v2.6.28 and v2.6.29-rc5 kernels.
      
      No actual users beyond the maintainer reported this breakage.
      Patches were sent and most of the fixes were accepted but the
      discussion around how to do a few remaining issues cleanly
      fizzled out with no resolution and the code remained broken.
      
      In the v2.6.30 x86 tree development cycle 32-bit subarch support
      has been reworked and removed - and the Voyager code, beyond the
      build problems already known, needs serious and significant
      changes and probably a rewrite to support it.
      
      CONFIG_X86_VOYAGER has been marked BROKEN then. The maintainer has
      been notified but no patches have been sent so far to fix it.
      
      While all other subarchs have been converted to the new scheme,
      voyager is still broken. We'd prefer to receive patches which
      clean up the current situation in a constructive way, but even in
      case of removal there is no obstacle to add that support back
      after the issues have been sorted out in a mutually acceptable
      fashion.
      
      So remove this inactive code for now.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      965c7eca
  18. 30 9月, 2008 1 次提交
  19. 21 8月, 2008 1 次提交
  20. 18 7月, 2008 1 次提交
  21. 16 7月, 2008 1 次提交
  22. 25 6月, 2008 1 次提交
  23. 24 6月, 2008 1 次提交
  24. 27 5月, 2008 1 次提交
  25. 23 5月, 2008 1 次提交
  26. 25 4月, 2008 1 次提交
  27. 30 1月, 2008 1 次提交
  28. 23 10月, 2007 1 次提交
    • R
      Normalize config options for guest support · d3d1c4bd
      Rusty Russell 提交于
      1) Group all the "guest OS" support options together, under a PARAVIRT_GUEST
         menu.
      2) Make those options select CONFIG_PARAVIRT, as suggested by Andi.
      3) Make kconfig help titles consistent.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Zach Amsden <zach@vmware.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Chris Wright <chrisw@sous-sol.org>
      d3d1c4bd
  29. 11 10月, 2007 1 次提交
  30. 18 7月, 2007 3 次提交