aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 14:53:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 14:53:46 -0400
commit7adf12b87f45a77d364464018fb8e9e1ac875152 (patch)
tree9e2f96ba1f7b1b768143d22ad3b77d248aae77c2 /drivers/xen
parent02201e3f1b46aed7c6348f406b7b40de80ba6de3 (diff)
parent6684fa1cdb1ebe804e9707f389255d461b2e95b0 (diff)
Merge tag 'for-linus-4.2-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen updates from David Vrabel: "Xen features and cleanups for 4.2-rc0: - add "make xenconfig" to assist in generating configs for Xen guests - preparatory cleanups necessary for supporting 64 KiB pages in ARM guests - automatically use hvc0 as the default console in ARM guests" * tag 'for-linus-4.2-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: block/xen-blkback: s/nr_pages/nr_segs/ block/xen-blkfront: Remove invalid comment block/xen-blkfront: Remove unused macro MAXIMUM_OUTSTANDING_BLOCK_REQS arm/xen: Drop duplicate define mfn_to_virt xen/grant-table: Remove unused macro SPP xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring xen: Include xen/page.h rather than asm/xen/page.h kconfig: add xenconfig defconfig helper kconfig: clarify kvmconfig is for kvm xen/pcifront: Remove usage of struct timeval xen/tmem: use BUILD_BUG_ON() in favor of BUG_ON() hvc_xen: avoid uninitialized variable warning xenbus: avoid uninitialized variable warning xen/arm: allow console=hvc0 to be omitted for guests arm,arm64/xen: move Xen initialization earlier arm/xen: Correctly check if the event channel interrupt is present
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/events/events_base.c2
-rw-r--r--drivers/xen/events/events_fifo.c2
-rw-r--r--drivers/xen/gntdev.c2
-rw-r--r--drivers/xen/grant-table.c1
-rw-r--r--drivers/xen/manage.c2
-rw-r--r--drivers/xen/tmem.c4
-rw-r--r--drivers/xen/xenbus/xenbus_client.c8
-rw-r--r--drivers/xen/xenbus/xenbus_probe.c2
8 files changed, 11 insertions, 12 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
index 38387950490e..96093ae369a5 100644
--- a/drivers/xen/events/events_base.c
+++ b/drivers/xen/events/events_base.c
@@ -39,8 +39,8 @@
39#include <asm/irq.h> 39#include <asm/irq.h>
40#include <asm/idle.h> 40#include <asm/idle.h>
41#include <asm/io_apic.h> 41#include <asm/io_apic.h>
42#include <asm/xen/page.h>
43#include <asm/xen/pci.h> 42#include <asm/xen/pci.h>
43#include <xen/page.h>
44#endif 44#endif
45#include <asm/sync_bitops.h> 45#include <asm/sync_bitops.h>
46#include <asm/xen/hypercall.h> 46#include <asm/xen/hypercall.h>
diff --git a/drivers/xen/events/events_fifo.c b/drivers/xen/events/events_fifo.c
index 417415d738d0..ed673e1acd61 100644
--- a/drivers/xen/events/events_fifo.c
+++ b/drivers/xen/events/events_fifo.c
@@ -44,13 +44,13 @@
44#include <asm/sync_bitops.h> 44#include <asm/sync_bitops.h>
45#include <asm/xen/hypercall.h> 45#include <asm/xen/hypercall.h>
46#include <asm/xen/hypervisor.h> 46#include <asm/xen/hypervisor.h>
47#include <asm/xen/page.h>
48 47
49#include <xen/xen.h> 48#include <xen/xen.h>
50#include <xen/xen-ops.h> 49#include <xen/xen-ops.h>
51#include <xen/events.h> 50#include <xen/events.h>
52#include <xen/interface/xen.h> 51#include <xen/interface/xen.h>
53#include <xen/interface/event_channel.h> 52#include <xen/interface/event_channel.h>
53#include <xen/page.h>
54 54
55#include "events_internal.h" 55#include "events_internal.h"
56 56
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c
index 89274850741b..67b9163db718 100644
--- a/drivers/xen/gntdev.c
+++ b/drivers/xen/gntdev.c
@@ -41,9 +41,9 @@
41#include <xen/balloon.h> 41#include <xen/balloon.h>
42#include <xen/gntdev.h> 42#include <xen/gntdev.h>
43#include <xen/events.h> 43#include <xen/events.h>
44#include <xen/page.h>
44#include <asm/xen/hypervisor.h> 45#include <asm/xen/hypervisor.h>
45#include <asm/xen/hypercall.h> 46#include <asm/xen/hypercall.h>
46#include <asm/xen/page.h>
47 47
48MODULE_LICENSE("GPL"); 48MODULE_LICENSE("GPL");
49MODULE_AUTHOR("Derek G. Murray <Derek.Murray@cl.cam.ac.uk>, " 49MODULE_AUTHOR("Derek G. Murray <Derek.Murray@cl.cam.ac.uk>, "
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c
index b1c7170e5c9e..62f591f8763c 100644
--- a/drivers/xen/grant-table.c
+++ b/drivers/xen/grant-table.c
@@ -138,7 +138,6 @@ static struct gnttab_free_callback *gnttab_free_callback_list;
138static int gnttab_expand(unsigned int req_entries); 138static int gnttab_expand(unsigned int req_entries);
139 139
140#define RPP (PAGE_SIZE / sizeof(grant_ref_t)) 140#define RPP (PAGE_SIZE / sizeof(grant_ref_t))
141#define SPP (PAGE_SIZE / sizeof(grant_status_t))
142 141
143static inline grant_ref_t *__gnttab_entry(grant_ref_t entry) 142static inline grant_ref_t *__gnttab_entry(grant_ref_t entry)
144{ 143{
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 9e6a85104a20..d10effee9b9e 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -19,10 +19,10 @@
19#include <xen/grant_table.h> 19#include <xen/grant_table.h>
20#include <xen/events.h> 20#include <xen/events.h>
21#include <xen/hvc-console.h> 21#include <xen/hvc-console.h>
22#include <xen/page.h>
22#include <xen/xen-ops.h> 23#include <xen/xen-ops.h>
23 24
24#include <asm/xen/hypercall.h> 25#include <asm/xen/hypercall.h>
25#include <asm/xen/page.h>
26#include <asm/xen/hypervisor.h> 26#include <asm/xen/hypervisor.h>
27 27
28enum shutdown_state { 28enum shutdown_state {
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c
index d88f36754bf7..239738f944ba 100644
--- a/drivers/xen/tmem.c
+++ b/drivers/xen/tmem.c
@@ -17,8 +17,8 @@
17 17
18#include <xen/xen.h> 18#include <xen/xen.h>
19#include <xen/interface/xen.h> 19#include <xen/interface/xen.h>
20#include <xen/page.h>
20#include <asm/xen/hypercall.h> 21#include <asm/xen/hypercall.h>
21#include <asm/xen/page.h>
22#include <asm/xen/hypervisor.h> 22#include <asm/xen/hypervisor.h>
23#include <xen/tmem.h> 23#include <xen/tmem.h>
24 24
@@ -389,7 +389,7 @@ static int __init xen_tmem_init(void)
389 } 389 }
390#endif 390#endif
391#ifdef CONFIG_CLEANCACHE 391#ifdef CONFIG_CLEANCACHE
392 BUG_ON(sizeof(struct cleancache_filekey) != sizeof(struct tmem_oid)); 392 BUILD_BUG_ON(sizeof(struct cleancache_filekey) != sizeof(struct tmem_oid));
393 if (tmem_enabled && cleancache) { 393 if (tmem_enabled && cleancache) {
394 int err; 394 int err;
395 395
diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c
index 96b2011d25f3..9ad327238ba9 100644
--- a/drivers/xen/xenbus/xenbus_client.c
+++ b/drivers/xen/xenbus/xenbus_client.c
@@ -37,7 +37,7 @@
37#include <linux/vmalloc.h> 37#include <linux/vmalloc.h>
38#include <linux/export.h> 38#include <linux/export.h>
39#include <asm/xen/hypervisor.h> 39#include <asm/xen/hypervisor.h>
40#include <asm/xen/page.h> 40#include <xen/page.h>
41#include <xen/interface/xen.h> 41#include <xen/interface/xen.h>
42#include <xen/interface/event_channel.h> 42#include <xen/interface/event_channel.h>
43#include <xen/balloon.h> 43#include <xen/balloon.h>
@@ -379,16 +379,16 @@ int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr,
379 int i, j; 379 int i, j;
380 380
381 for (i = 0; i < nr_pages; i++) { 381 for (i = 0; i < nr_pages; i++) {
382 unsigned long addr = (unsigned long)vaddr +
383 (PAGE_SIZE * i);
384 err = gnttab_grant_foreign_access(dev->otherend_id, 382 err = gnttab_grant_foreign_access(dev->otherend_id,
385 virt_to_mfn(addr), 0); 383 virt_to_mfn(vaddr), 0);
386 if (err < 0) { 384 if (err < 0) {
387 xenbus_dev_fatal(dev, err, 385 xenbus_dev_fatal(dev, err,
388 "granting access to ring page"); 386 "granting access to ring page");
389 goto fail; 387 goto fail;
390 } 388 }
391 grefs[i] = err; 389 grefs[i] = err;
390
391 vaddr = vaddr + PAGE_SIZE;
392 } 392 }
393 393
394 return 0; 394 return 0;
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c
index 5390a674b5e3..4308fb3cf7c2 100644
--- a/drivers/xen/xenbus/xenbus_probe.c
+++ b/drivers/xen/xenbus/xenbus_probe.c
@@ -742,7 +742,7 @@ static int xenbus_resume_cb(struct notifier_block *nb,
742 int err = 0; 742 int err = 0;
743 743
744 if (xen_hvm_domain()) { 744 if (xen_hvm_domain()) {
745 uint64_t v; 745 uint64_t v = 0;
746 746
747 err = hvm_get_parameter(HVM_PARAM_STORE_EVTCHN, &v); 747 err = hvm_get_parameter(HVM_PARAM_STORE_EVTCHN, &v);
748 if (!err && v) 748 if (!err && v)