23 Apr, 2013

2 commits

  • This patch tries to coalesce tx requests when constructing grant copy
    structures. It enables netback to deal with situation when frontend's
    MAX_SKB_FRAGS is larger than backend's MAX_SKB_FRAGS.

    With the help of coalescing, this patch tries to address two regressions
    avoid reopening the security hole in XSA-39.

    Regression 1. The reduction of the number of supported ring entries (slots)
    per packet (from 18 to 17). This regression has been around for some time but
    remains unnoticed until XSA-39 security fix. This is fixed by coalescing
    slots.

    Regression 2. The XSA-39 security fix turning "too many frags" errors from
    just dropping the packet to a fatal error and disabling the VIF. This is fixed
    by coalescing slots (handling 18 slots when backend's MAX_SKB_FRAGS is 17)
    which rules out false positive (using 18 slots is legit) and dropping packets
    using 19 to `max_skb_slots` slots.

    To avoid reopening security hole in XSA-39, frontend sending packet using more
    than max_skb_slots is considered malicious.

    The behavior of netback for packet is thus:

    1-18 slots: valid
    19-max_skb_slots slots: drop and respond with an error
    max_skb_slots+ slots: fatal error

    max_skb_slots is configurable by admin, default value is 20.

    Also change variable name from "frags" to "slots" in netbk_count_requests.

    Please note that RX path still has dependency on MAX_SKB_FRAGS. This will be
    fixed with separate patch.

    Signed-off-by: Wei Liu
    Acked-by: Ian Campbell
    Signed-off-by: David S. Miller

    Wei Liu
     
  • The maximum packet including header that can be handled by netfront / netback
    wire format is 65535. Reduce gso_max_size accordingly.

    Drop skb and print warning when skb->len > 65535. This can 1) save the effort
    to send malformed packet to netback, 2) help spotting misconfiguration of
    netfront in the future.

    Signed-off-by: Wei Liu
    Acked-by: Ian Campbell
    Signed-off-by: David S. Miller

    Wei Liu
     

01 Apr, 2013

1 commit

  • Pull block fixes from Jens Axboe:
    "Alright, this time from 10K up in the air.

    Collection of fixes that have been queued up since the merge window
    opened, hence postponed until later in the cycle. The pull request
    contains:

    - A bunch of fixes for the xen blk front/back driver.

    - A round of fixes for the new IBM RamSan driver, fixing various
    nasty issues.

    - Fixes for multiple drives from Wei Yongjun, bad handling of return
    values and wrong pointer math.

    - A fix for loop properly killing partitions when being detached."

    * tag 'for-linus-20130331' of git://git.kernel.dk/linux-block: (25 commits)
    mg_disk: fix error return code in mg_probe()
    rsxx: remove unused variable
    rsxx: enable error return of rsxx_eeh_save_issued_dmas()
    block: removes dynamic allocation on stack
    Block: blk-flush: Fixed indent code style
    cciss: fix invalid use of sizeof in cciss_find_cfgtables()
    loop: cleanup partitions when detaching loop device
    loop: fix error return code in loop_add()
    mtip32xx: fix error return code in mtip_pci_probe()
    xen-blkfront: remove frame list from blk_shadow
    xen-blkfront: pre-allocate pages for requests
    xen-blkback: don't store dev_bus_addr
    xen-blkfront: switch from llist to list
    xen-blkback: fix foreach_grant_safe to handle empty lists
    xen-blkfront: replace kmalloc and then memcpy with kmemdup
    xen-blkback: fix dispatch_rw_block_io() error path
    rsxx: fix missing unlock on error return in rsxx_eeh_remap_dmas()
    Adding in EEH support to the IBM FlashSystem 70/80 device driver
    block: IBM RamSan 70/80 error message bug fix.
    block: IBM RamSan 70/80 branding changes.
    ...

    Linus Torvalds
     

22 Mar, 2013

2 commits

  • …git/konrad/xen into for-linus

    Konrad writes:

    [the branch] has a bunch of fixes. They vary from being able to deal
    with unknown requests, overflow in statistics, compile warnings, bug in
    the error path, removal of unnecessary logic. There is also one
    performance fix - which is to allocate pages for requests when the
    driver loads - instead of doing it per request

    Jens Axboe
     
  • For MSI-X capable devices the hypervisor wants to write protect the
    MSI-X table and PBA, yet it can't assume that resources have been
    assigned to their final values at device enumeration time. Thus have
    pciback do that notification, as having the device controlled by it is
    a prerequisite to assigning the device to guests anyway.

    This is the kernel part of hypervisor side commit 4245d33 ("x86/MSI:
    add mechanism to fully protect MSI-X table from PV guest accesses") on
    the master branch of git://xenbits.xen.org/xen.git.

    CC: stable@vger.kernel.org
    Signed-off-by: Jan Beulich
    Signed-off-by: Konrad Rzeszutek Wilk

    Jan Beulich
     

12 Mar, 2013

1 commit

  • If the frontend is using a non-native protocol (e.g., a 64-bit
    frontend with a 32-bit backend) and it sent an unrecognized request,
    the request was not translated and the response would have the
    incorrect ID. This may cause the frontend driver to behave
    incorrectly or crash.

    Since the ID field in the request is always in the same place,
    regardless of the request type we can get the correct ID and make a
    valid response (which will report BLKIF_RSP_EOPNOTSUPP).

    This bug affected 64-bit SLES 11 guests when using a 32-bit backend.
    This guest does a BLKIF_OP_RESERVED_1 (BLKIF_OP_PACKET in the SLES
    source) and would crash in blkif_int() as the ID in the response would
    be invalid.

    Signed-off-by: David Vrabel
    Cc: stable@vger.kernel.org
    Signed-off-by: Konrad Rzeszutek Wilk

    David Vrabel
     

20 Feb, 2013

4 commits

  • On ARM we want these to be the same size on 32- and 64-bit.

    This is an ABI change on ARM. X86 does not change.

    Signed-off-by: Ian Campbell
    Cc: Jan Beulich
    Cc: Keir (Xen.org)
    Cc: Tim Deegan
    Cc: Stefano Stabellini
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: xen-devel@lists.xen.org
    Cc: Konrad Rzeszutek Wilk
    Signed-off-by: Konrad Rzeszutek Wilk

    Ian Campbell
     
  • This patch implement real Xen ACPI cpu hotplug driver as module.
    When loaded, it replaces Xen stub driver.

    For booting existed cpus, the driver enumerates them.
    For hotadded cpus, which added at runtime and notify OS via
    device or container event, the driver is invoked to add them,
    parsing cpu information, hypercalling to Xen hypervisor to add
    them, and finally setting up new /sys interface for them.

    Signed-off-by: Liu Jinsong
    Signed-off-by: Konrad Rzeszutek Wilk

    Liu Jinsong
     
  • This patch implements real Xen acpi memory hotplug driver as module.
    When loaded, it replaces Xen stub driver.

    When an acpi memory device hotadd event occurs, it notifies OS and
    invokes notification callback, adding related memory device and parsing
    memory information, finally hypercall to xen hypervisor to add memory.

    Signed-off-by: Liu Jinsong
    Signed-off-by: Konrad Rzeszutek Wilk

    Liu Jinsong
     
  • Allows for more fine grained error reporting. Only used by PVH and
    ARM both of which are marked EXPERIMENTAL precisely because the ABI
    is not yet stable

    Signed-off-by: Ian Campbell
    [v1: Rebased without PVH patches]
    Signed-off-by: Konrad Rzeszutek Wilk

    Ian Campbell
     

18 Dec, 2012

1 commit


01 Dec, 2012

1 commit

  • …to stable/for-linus-3.8

    * 'arm-privcmd-for-3.8' of git://xenbits.xen.org/people/ianc/linux:
    xen: arm: implement remap interfaces needed for privcmd mappings.
    xen: correctly use xen_pfn_t in remap_domain_mfn_range.
    xen: arm: enable balloon driver
    xen: balloon: allow PVMMU interfaces to be compiled out
    xen: privcmd: support autotranslated physmap guests.
    xen: add pages parameter to xen_remap_domain_mfn_range

    Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

    Konrad Rzeszutek Wilk
     

29 Nov, 2012

2 commits


27 Nov, 2012

2 commits

  • Commit 92e3229dcdc80ff0b6304f14c578d76e7e10e226
    ("xen/acpi: ACPI PAD driver") adds a new function but forgets to
    use the right header. Without it, we get:

    In file included from drivers/xen/features.c:15:0:
    include/xen/interface/version.h: In function ‘xen_running_on_version_or_later’:
    include/xen/interface/version.h:72:2: error: implicit declaration of function ‘xen_domain’ [-Werror=implicit-function-declaration]

    Signed-off-by: Konrad Rzeszutek Wilk

    Konrad Rzeszutek Wilk
     
  • PAD is acpi Processor Aggregator Device which provides a control point
    that enables the platform to perform specific processor configuration
    and control that applies to all processors in the platform.

    This patch is to implement Xen acpi pad logic. When running under Xen
    virt platform, native pad driver would not work. Instead Xen pad driver,
    a self-contained and thin logic level, would take over acpi pad logic.

    When acpi pad notify OSPM, xen pad logic intercept and parse _PUR object
    to get the expected idle cpu number, and then hypercall to hypervisor.
    Xen hypervisor would then do the rest work, say, core parking, to idle
    specific number of cpus on its own policy.

    Signed-off-by: Jan Beulich
    Signed-off-by: Liu Jinsong
    Signed-off-by: Konrad Rzeszutek Wilk

    Liu, Jinsong
     

20 Oct, 2012

3 commits

  • * commit 'v3.7-rc1': (10892 commits)
    Linux 3.7-rc1
    x86, boot: Explicitly include autoconf.h for hostprogs
    perf: Fix UAPI fallout
    ARM: config: make sure that platforms are ordered by option string
    ARM: config: sort select statements alphanumerically
    UAPI: (Scripted) Disintegrate include/linux/byteorder
    UAPI: (Scripted) Disintegrate include/linux
    UAPI: Unexport linux/blk_types.h
    UAPI: Unexport part of linux/ppp-comp.h
    perf: Handle new rbtree implementation
    procfs: don't need a PATH_MAX allocation to hold a string representation of an int
    vfs: embed struct filename inside of names_cache allocation if possible
    audit: make audit_inode take struct filename
    vfs: make path_openat take a struct filename pointer
    vfs: turn do_path_lookup into wrapper around struct filename variant
    audit: allow audit code to satisfy getname requests from its names_list
    vfs: define struct filename and have getname() return it
    btrfs: Fix compilation with user namespace support enabled
    userns: Fix posix_acl_file_xattr_userns gid conversion
    userns: Properly print bluetooth socket uids
    ...

    Konrad Rzeszutek Wilk
     
  • This correctly sizes it as 64 bit on ARM but leaves it as unsigned
    long on x86 (therefore no intended change on x86).

    The long and ulong guest handles are now unused (and a bit dangerous)
    so remove them.

    Acked-by: Stefano Stabellini
    Signed-off-by: Ian Campbell
    Signed-off-by: Konrad Rzeszutek Wilk

    Ian Campbell
     
  • Signed-off-by: Ian Campbell
    Signed-off-by: Konrad Rzeszutek Wilk

    Ian Campbell
     

12 Oct, 2012

1 commit

  • Pull Xen fixes from Konrad Rzeszutek Wilk:
    "This has four bug-fixes and one tiny feature that I forgot to put
    initially in my tree due to oversight.

    The feature is for kdump kernels to speed up the /proc/vmcore reading.
    There is a ram_is_pfn helper function that the different platforms can
    register for. We are now doing that.

    The bug-fixes cover some embarrassing struct pv_cpu_ops variables
    being set to NULL on Xen (but not baremetal). We had a similar issue
    in the past with {write|read}_msr_safe and this fills the three
    missing ones. The other bug-fix is to make the console output (hvc)
    be capable of dealing with misbehaving backends and not fall flat on
    its face. Lastly, a quirk for older XenBus implementations that came
    with an ancient v3.4 hypervisor (so RHEL5 based) - reading of certain
    non-existent attributes just hangs the guest during bootup - so we
    take precaution of not doing that on such older installations.

    Feature:
    - Register a pfn_is_ram helper to speed up reading of /proc/vmcore.
    Bug-fixes:
    - Three pvops call for Xen were undefined causing BUG_ONs.
    - Add a quirk so that the shutdown watches (used by kdump) are not
    used with older Xen (3.4).
    - Fix ungraceful state transition for the HVC console."

    * tag 'stable/for-linus-3.7-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
    xen/pv-on-hvm kexec: add quirk for Xen 3.4 and shutdown watches.
    xen/bootup: allow {read|write}_cr8 pvops call.
    xen/bootup: allow read_tscp call for Xen PV guests.
    xen pv-on-hvm: add pfn_is_ram helper for kdump
    xen/hvc: handle backend CLOSED without CLOSING

    Linus Torvalds
     

07 Oct, 2012

1 commit

  • Pull ADM Xen support from Konrad Rzeszutek Wilk:

    Features:
    * Allow a Linux guest to boot as initial domain and as normal guests
    on Xen on ARM (specifically ARMv7 with virtualized extensions). PV
    console, block and network frontend/backends are working.
    Bug-fixes:
    * Fix compile linux-next fallout.
    * Fix PVHVM bootup crashing.

    The Xen-unstable hypervisor (so will be 4.3 in a ~6 months), supports
    ARMv7 platforms.

    The goal in implementing this architecture is to exploit the hardware
    as much as possible. That means use as little as possible of PV
    operations (so no PV MMU) - and use existing PV drivers for I/Os
    (network, block, console, etc). This is similar to how PVHVM guests
    operate in X86 platform nowadays - except that on ARM there is no need
    for QEMU. The end result is that we share a lot of the generic Xen
    drivers and infrastructure.

    Details on how to compile/boot/etc are available at this Wiki:

    http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions

    and this blog has links to a technical discussion/presentations on the
    overall architecture:

    http://blog.xen.org/index.php/2012/09/21/xensummit-sessions-new-pvh-virtualisation-mode-for-arm-cortex-a15arm-servers-and-x86/

    * tag 'stable/for-linus-3.7-arm-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen: (21 commits)
    xen/xen_initial_domain: check that xen_start_info is initialized
    xen: mark xen_init_IRQ __init
    xen/Makefile: fix dom-y build
    arm: introduce a DTS for Xen unprivileged virtual machines
    MAINTAINERS: add myself as Xen ARM maintainer
    xen/arm: compile netback
    xen/arm: compile blkfront and blkback
    xen/arm: implement alloc/free_xenballooned_pages with alloc_pages/kfree
    xen/arm: receive Xen events on ARM
    xen/arm: initialize grant_table on ARM
    xen/arm: get privilege status
    xen/arm: introduce CONFIG_XEN on ARM
    xen: do not compile manage, balloon, pci, acpi, pcpu and cpu_hotplug on ARM
    xen/arm: Introduce xen_ulong_t for unsigned long
    xen/arm: Xen detection and shared_info page mapping
    docs: Xen ARM DT bindings
    xen/arm: empty implementation of grant_table arch specific functions
    xen/arm: sync_bitops
    xen/arm: page.h definitions
    xen/arm: hypercalls
    ...

    Linus Torvalds
     

04 Oct, 2012

2 commits

  • Register pfn_is_ram helper speed up reading /proc/vmcore in the kdump
    kernel. See commit message of 997c136f518c ("fs/proc/vmcore.c: add hook
    to read_from_oldmem() to check for non-ram pages") for details.

    It makes use of a new hvmop HVMOP_get_mem_type which was introduced in
    xen 4.2 (23298:26413986e6e0) and backported to 4.1.1.

    The new function is currently only enabled for reading /proc/vmcore.
    Later it will be used also for the kexec kernel. Since that requires
    more changes in the generic kernel make it static for the time being.

    Signed-off-by: Olaf Hering
    Signed-off-by: Konrad Rzeszutek Wilk

    Olaf Hering
     
  • Pull preparatory patches for user API disintegration from David Howells:
    "The patches herein prepare for the extraction of the Userspace API
    bits from the various header files named in the Kbuild files.

    New subdirectories are created under either include/uapi/ or
    arch/x/include/uapi/ that correspond to the subdirectory containing
    that file under include/ or arch/x/include/.

    The new subdirs under the uapi/ directory are populated with Kbuild
    files that mostly do nothing at this time. Further patches will
    disintegrate the headers in each original directory and fill in the
    Kbuild files as they do it.

    These patches also:

    (1) fix up #inclusions of "foo.h" rather than .

    (2) Remove some redundant #includes from the DRM code.

    (3) Make the kernel build infrastructure handle Kbuild files both in
    the old places and the new UAPI place that both specify headers
    to be exported.

    (4) Fix some kernel tools that #include kernel headers during their
    build.

    I have compile tested this with allyesconfig against x86_64,
    allmodconfig against i386 and a scattering of additional defconfigs of
    other arches. Prepared for main script

    Signed-off-by: David Howells
    Acked-by: Arnd Bergmann
    Acked-by: Thomas Gleixner
    Acked-by: Michael Kerrisk
    Acked-by: Paul E. McKenney
    Acked-by: Dave Jones
    Acked-by: H. Peter Anvin "

    * tag 'uapi-prep-20121002' of git://git.infradead.org/users/dhowells/linux-headers:
    UAPI: Plumb the UAPI Kbuilds into the user header installation and checking
    UAPI: x86: Differentiate the generated UAPI and internal headers
    UAPI: Remove the objhdr-y export list
    UAPI: Move linux/version.h
    UAPI: Set up uapi/asm/Kbuild.asm
    UAPI: x86: Fix insn_sanity build failure after UAPI split
    UAPI: x86: Fix the test_get_len tool
    UAPI: (Scripted) Set up UAPI Kbuild files
    UAPI: Partition the header include path sets and add uapi/ header directories
    UAPI: (Scripted) Convert #include "..." to #include in kernel system headers
    UAPI: (Scripted) Convert #include "..." to #include in drivers/gpu/
    UAPI: (Scripted) Remove redundant DRM UAPI header #inclusions from drivers/gpu/.
    UAPI: Refer to the DRM UAPI headers with and from certain headers only

    Linus Torvalds
     

03 Oct, 2012

2 commits

  • Pull Xen update from Konrad Rzeszutek Wilk:
    "Features:
    - When hotplugging PCI devices in a PV guest we can allocate
    Xen-SWIOTLB later.
    - Cleanup Xen SWIOTLB.
    - Support pages out grants from HVM domains in the backends.
    - Support wild cards in xen-pciback.hide=(BDF) arguments.
    - Update grant status updates with upstream hypervisor.
    - Boot PV guests with more than 128GB.
    - Cleanup Xen MMU code/add comments.
    - Obtain XENVERS using a preferred method.
    - Lay out generic changes to support Xen ARM.
    - Allow privcmd ioctl for HVM (used to do only PV).
    - Do v2 of mmap_batch for privcmd ioctls.
    - If hypervisor saves the LED keyboard light - we will now instruct
    the kernel about its state.
    Fixes:
    - More fixes to Xen PCI backend for various calls/FLR/etc.
    - With more than 4GB in a 64-bit PV guest disable native SWIOTLB.
    - Fix up smatch warnings.
    - Fix up various return values in privmcmd and mm."

    * tag 'stable/for-linus-3.7-x86-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen: (48 commits)
    xen/pciback: Restore the PCI config space after an FLR.
    xen-pciback: properly clean up after calling pcistub_device_find()
    xen/vga: add the xen EFI video mode support
    xen/x86: retrieve keyboard shift status flags from hypervisor.
    xen/gndev: Xen backend support for paged out grant targets V4.
    xen-pciback: support wild cards in slot specifications
    xen/swiotlb: Fix compile warnings when using plain integer instead of NULL pointer.
    xen/swiotlb: Remove functions not needed anymore.
    xen/pcifront: Use Xen-SWIOTLB when initting if required.
    xen/swiotlb: For early initialization, return zero on success.
    xen/swiotlb: Use the swiotlb_late_init_with_tbl to init Xen-SWIOTLB late when PV PCI is used.
    xen/swiotlb: Move the error strings to its own function.
    xen/swiotlb: Move the nr_tbl determination in its own function.
    xen/arm: compile and run xenbus
    xen: resynchronise grant table status codes with upstream
    xen/privcmd: return -EFAULT on error
    xen/privcmd: Fix mmap batch ioctl error status copy back.
    xen/privcmd: add PRIVCMD_MMAPBATCH_V2 ioctl
    xen/mm: return more precise error from xen_remap_domain_range()
    xen/mmu: If the revector fails, don't attempt to revector anything else.
    ...

    Linus Torvalds
     
  • Convert #include "..." to #include in kernel system headers.

    Signed-off-by: David Howells
    Acked-by: Arnd Bergmann
    Acked-by: Thomas Gleixner
    Acked-by: Paul E. McKenney
    Acked-by: Dave Jones

    David Howells
     

27 Sep, 2012

1 commit

  • …x-pvhvm into stable/for-linus-3.7

    * 'xenarm-for-linus' of git://xenbits.xen.org/people/sstabellini/linux-pvhvm:
    arm: introduce a DTS for Xen unprivileged virtual machines
    MAINTAINERS: add myself as Xen ARM maintainer
    xen/arm: compile netback
    xen/arm: compile blkfront and blkback
    xen/arm: implement alloc/free_xenballooned_pages with alloc_pages/kfree
    xen/arm: receive Xen events on ARM
    xen/arm: initialize grant_table on ARM
    xen/arm: get privilege status
    xen/arm: introduce CONFIG_XEN on ARM
    xen: do not compile manage, balloon, pci, acpi, pcpu and cpu_hotplug on ARM
    xen/arm: Introduce xen_ulong_t for unsigned long
    xen/arm: Xen detection and shared_info page mapping
    docs: Xen ARM DT bindings
    xen/arm: empty implementation of grant_table arch specific functions
    xen/arm: sync_bitops
    xen/arm: page.h definitions
    xen/arm: hypercalls
    arm: initial Xen support

    Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

    Konrad Rzeszutek Wilk
     

24 Sep, 2012

2 commits

  • In order to add xen EFI frambebuffer video support, it is required to add
    xen-efi's new video type (XEN_VGATYPE_EFI_LFB) case and handle it in the
    function xen_init_vga and set the video type to VIDEO_TYPE_EFI to enable
    efi video mode.

    The original patch from which this was broken out from:
    http://marc.info/?i=4E099AA6020000780004A4C6@nat28.tlf.novell.com

    Signed-off-by: Jan Beulich
    Signed-off-by: Tang Liang
    [v2: The original author is Jan Beulich and Liang Tang ported it to upstream]
    Signed-off-by: Konrad Rzeszutek Wilk

    Jan Beulich
     
  • The xen c/s 25873 allows the hypervisor to retrieve the NUMLOCK flag.
    With this patch, the Linux kernel can get the state according to the
    data in the BIOS.

    Acked-by: Jan Beulich
    Signed-off-by: Konrad Rzeszutek Wilk

    Konrad Rzeszutek Wilk
     

19 Sep, 2012

1 commit

  • Just like for the in-tree early console debug port driver, the
    hypervisor - when using a debug port based console - also needs to be
    told about controller resets, so it can suppress using and then
    re-initialize the debug port accordingly.

    Other than the in-tree driver, the hypervisor driver actually cares
    about doing this only for the device where the debug is port actually
    in use, i.e. it needs to be told the coordinates of the device being
    reset (quite obviously, leveraging the addition done for that would
    likely benefit the in-tree driver too).

    Signed-off-by: Jan Beulich
    Acked-by: Konrad Rzeszutek Wilk
    Acked-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Jan Beulich
     

14 Sep, 2012

2 commits

  • Adds GNTST_address_too_big and GNTST_eagain.

    Signed-off-by: Ian Campbell
    Signed-off-by: Konrad Rzeszutek Wilk

    Ian Campbell
     
  • All the original Xen headers have xen_ulong_t as unsigned long type, however
    when they have been imported in Linux, xen_ulong_t has been replaced with
    unsigned long. That might work for x86 and ia64 but it does not for arm.
    Bring back xen_ulong_t and let each architecture define xen_ulong_t as they
    see fit.

    Also explicitly size pointers (__DEFINE_GUEST_HANDLE) to 64 bit.

    Changes in v3:

    - remove the incorrect changes to multicall_entry;
    - remove the change to apic_physbase.

    Signed-off-by: Stefano Stabellini
    Acked-by: Konrad Rzeszutek Wilk

    Stefano Stabellini
     

12 Sep, 2012

1 commit

  • …/tip into stable/for-linus-3.7

    * 'x86/platform' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (9690 commits)
    x86: Document x86_init.paging.pagetable_init()
    x86: xen: Cleanup and remove x86_init.paging.pagetable_setup_done()
    x86: Move paging_init() call to x86_init.paging.pagetable_init()
    x86: Rename pagetable_setup_start() to pagetable_init()
    x86: Remove base argument from x86_init.paging.pagetable_setup_start
    Linux 3.6-rc5
    HID: tpkbd: work even if the new Lenovo Keyboard driver is not configured
    Remove user-triggerable BUG from mpol_to_str
    xen/pciback: Fix proper FLR steps.
    uml: fix compile error in deliver_alarm()
    dj: memory scribble in logi_dj
    Fix order of arguments to compat_put_time[spec|val]
    xen: Use correct masking in xen_swiotlb_alloc_coherent.
    xen: fix logical error in tlb flushing
    xen/p2m: Fix one-off error in checking the P2M tree directory.
    powerpc: Don't use __put_user() in patch_instruction
    powerpc: Make sure IPI handlers see data written by IPI senders
    powerpc: Restore correct DSCR in context switch
    powerpc: Fix DSCR inheritance in copy_thread()
    powerpc: Keep thread.dscr and thread.dscr_inherit in sync
    ...

    Konrad Rzeszutek Wilk
     

23 Aug, 2012

2 commits

  • All the original Xen headers have xen_pfn_t as mfn and pfn type, however
    when they have been imported in Linux, xen_pfn_t has been replaced with
    unsigned long. That might work for x86 and ia64 but it does not for arm.
    Bring back xen_pfn_t and let each architecture define xen_pfn_t as they
    see fit.

    Signed-off-by: Stefano Stabellini
    Acked-by: Konrad Rzeszutek Wilk
    Signed-off-by: Konrad Rzeszutek Wilk

    Stefano Stabellini
     
  • This hypercall has been present since Xen 3.1, and is the preferred
    method for a domain to obtain its UUID. Fall back to the xenstore method
    if using an older version of Xen (which returns -ENOSYS).

    Signed-off-by: Daniel De Graaf
    Signed-off-by: Konrad Rzeszutek Wilk

    Daniel De Graaf
     

22 Aug, 2012

2 commits

  • Changes in v2:
    - remove pvclock hack;
    - remove include linux/types.h from xen/interface/xen.h.
    v3:
    - Compile under IA64
    Signed-off-by: Stefano Stabellini
    Signed-off-by: Konrad Rzeszutek Wilk

    Stefano Stabellini
     
  • Update struct xen_add_to_physmap to be in sync with Xen's version of the
    structure.
    The size field was introduced by:

    changeset: 24164:707d27fe03e7
    user: Jean Guyader
    date: Fri Nov 18 13:42:08 2011 +0000
    summary: mm: New XENMEM space, XENMAPSPACE_gmfn_range

    According to the comment:

    "This new field .size is located in the 16 bits padding between .domid
    and .space in struct xen_add_to_physmap to stay compatible with older
    versions."

    Changes in v2:

    - remove erroneous comment in the commit message.

    Signed-off-by: Stefano Stabellini
    Signed-off-by: Konrad Rzeszutek Wilk

    Stefano Stabellini
     

09 Aug, 2012

2 commits


20 Jul, 2012

2 commits

  • Add xs_reset_watches function to shutdown watches from old kernel after
    kexec boot. The old kernel does not unregister all watches in the
    shutdown path. They are still active, the double registration can not
    be detected by the new kernel. When the watches fire, unexpected events
    will arrive and the xenwatch thread will crash (jumps to NULL). An
    orderly reboot of a hvm guest will destroy the entire guest with all its
    resources (including the watches) before it is rebuilt from scratch, so
    the missing unregister is not an issue in that case.

    With this change the xenstored is instructed to wipe all active watches
    for the guest. However, a patch for xenstored is required so that it
    accepts the XS_RESET_WATCHES request from a client (see changeset
    23839:42a45baf037d in xen-unstable.hg). Without the patch for xenstored
    the registration of watches will fail and some features of a PVonHVM
    guest are not available. The guest is still able to boot, but repeated
    kexec boots will fail.

    Signed-off-by: Olaf Hering
    Signed-off-by: Konrad Rzeszutek Wilk

    Olaf Hering
     
  • This patch provide Xen physical cpus online/offline sys interface.
    User can use it for their own purpose, like power saving:
    by offlining some cpus when light workload it save power greatly.

    Its basic workflow is, user online/offline cpu via sys interface,
    then hypercall xen to implement, after done xen inject virq back to dom0,
    and then dom0 sync cpu status.

    Signed-off-by: Jiang, Yunhong
    Signed-off-by: Liu, Jinsong
    Signed-off-by: Konrad Rzeszutek Wilk

    Liu, Jinsong