[PATCH] Save command pool address of Scsi_Host

2014-07-31 Thread jgross
From: Juergen Gross If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool() isn't saving the pool address in the host template. This will result in an access error whe

[PATCH RFC 0/3] x86: Full support of PAT

2014-08-19 Thread jgross
The x86 architecture offers via the PAT (Page Attribute Table) a way to specify different caching modes in page table entries. The PAT MSR contains 8 entries each specifying one of 6 possible cache modes. A pte references one of those entries via 3 bits: _PAGE_PAT, _PAGE_PWT and _PAGE_PCD. The Lin

[PATCH RFC 3/3] Support Xen pv-domains using PAT

2014-08-19 Thread jgross
From: Juergen Gross With the dynamical mapping between cache modes and pgprot values it is now possible to use all cache modes via the Xen hypervisor PAT settings in a pv domain. All to be done is to read the PAT configuration MSR and set up the translation tables accordingly. Signed-off-by: Ju

[PATCH RFC 2/3] x86: Enable PAT to use cache mode translation tables

2014-08-19 Thread jgross
From: Juergen Gross Update the translation tables from cache mode to pgprot values according to the PAT settings. This enables changing the cache attributes of a PAT index in just one place without having to change at the users side. With this change it is possible to use the same kernel with di

[PATCH RFC 1/3] x86: Make page cache mode a real type

2014-08-19 Thread jgross
From: Juergen Gross At the moment there are a lot of places that handle setting or getting the page cache mode by treating the pgprot bits equal to the cache mode. This is only true because there are a lot of assumptions about the setup of the PAT MSR. Otherwise the cache type needs to get transl

[PATCH] Make bind_interdomain_evtchn_to_irq() public

2014-08-12 Thread jgross
From: Juergen Gross bind_interdomain_evtchn_to_irq() is currently a private function. It is used only by bind_interdomain_evtchn_to_irqhandler() to register an irq-handler for an event channel. By making it public it is possible to use e.g. threaded interrupts with interdomain event channels. S

[V2 PATCH] Save command pool address of Scsi_Host

2014-08-01 Thread jgross
From: Juergen Gross If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool() isn't saving the pool address in the host template. This will result in an access error whe

[PATCH V3] Save command pool address of Scsi_Host

2014-08-03 Thread jgross
From: Juergen Gross If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool() isn't saving the pool address in the host template. This will result in an access error whe

[PATCH V4] Save command pool address of Scsi_Host

2014-08-04 Thread jgross
From: Juergen Gross If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool() isn't saving the pool address in the host template. This will result in an access error whe

[PATCH V5] Save command pool address of Scsi_Host

2014-08-04 Thread jgross
From: Juergen Gross If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool() isn't saving the pool address in the host template. This will result in an access error whe