Merge branch 'x86-hyperv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Sep 2019 02:39:00 +0000 (19:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Sep 2019 02:39:00 +0000 (19:39 -0700)
Pull x86 hyperv updates from Ingo Molnar:
 "Misc updates related to page size abstractions within the HyperV code,
  in preparation for future features"

* 'x86-hyperv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  drivers: hv: vmbus: Replace page definition with Hyper-V specific one
  x86/hyperv: Add functions to allocate/deallocate page for Hyper-V
  x86/hyperv: Create and use Hyper-V page definitions

1  2 
drivers/hv/hyperv_vmbus.h

@@@ -146,6 -146,8 +146,6 @@@ struct hv_context 
         */
        u64 guestid;
  
 -      void *tsc_page;
 -
        struct hv_per_cpu_context __percpu *cpu_context;
  
        /*
@@@ -190,11 -192,11 +190,11 @@@ int hv_ringbuffer_read(struct vmbus_cha
                       u64 *requestid, bool raw);
  
  /*
-  * Maximum channels is determined by the size of the interrupt page
-  * which is PAGE_SIZE. 1/2 of PAGE_SIZE is for send endpoint interrupt
-  * and the other is receive endpoint interrupt
+  * The Maximum number of channels (16348) is determined by the size of the
+  * interrupt page, which is HV_HYP_PAGE_SIZE. 1/2 of HV_HYP_PAGE_SIZE is to
+  * send endpoint interrupts, and the other is to receive endpoint interrupts.
   */
- #define MAX_NUM_CHANNELS      ((PAGE_SIZE >> 1) << 3) /* 16348 channels */
+ #define MAX_NUM_CHANNELS      ((HV_HYP_PAGE_SIZE >> 1) << 3)
  
  /* The value here must be in multiple of 32 */
  /* TODO: Need to make this configurable */