mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAABAgAGBQJVkpoqAAoJEFxbo/MsZsTRu3IH/2AMPx2i65hoSqfHtGf3sz/z XNfcidVmOElFVXGaW83m0tBWMemT5LpOGRfiq5sIo8xt/8xD2vozEkl/3kkf3RrX EmZDw3E8vmstBdBTjWdovVhNenRc0m0pB5daS7wUdo9cETq1ag1L3BHTB3fEBApO 74V6qAfnhnq+snqWhRD3XAk3LKI0nWuWaV+5HsmxDtnunGhuRLGVs7mwxZGg56sM mILA0eApGPdwyVVpuDe0SwV52V8E/iuVOWTcomGEN2+cRWffG5+QpHxQA8bOtF6O KfqldiNXOY/idM+5+oSm9hespmdWbyzsFqmTYz0LvQvxE8eEZtHHB3gIcHkE8QU= =danz -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
7adf12b87f
25 changed files with 157 additions and 59 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <linux/workqueue.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/ktime.h>
|
||||
#include <xen/platform_pci.h>
|
||||
|
||||
#include <asm/xen/swiotlb-xen.h>
|
||||
|
@ -115,7 +116,6 @@ static int do_pci_op(struct pcifront_device *pdev, struct xen_pci_op *op)
|
|||
evtchn_port_t port = pdev->evtchn;
|
||||
unsigned irq = pdev->irq;
|
||||
s64 ns, ns_timeout;
|
||||
struct timeval tv;
|
||||
|
||||
spin_lock_irqsave(&pdev->sh_info_lock, irq_flags);
|
||||
|
||||
|
@ -132,8 +132,7 @@ static int do_pci_op(struct pcifront_device *pdev, struct xen_pci_op *op)
|
|||
* (in the latter case we end up continually re-executing poll() with a
|
||||
* timeout in the past). 1s difference gives plenty of slack for error.
|
||||
*/
|
||||
do_gettimeofday(&tv);
|
||||
ns_timeout = timeval_to_ns(&tv) + 2 * (s64)NSEC_PER_SEC;
|
||||
ns_timeout = ktime_get_ns() + 2 * (s64)NSEC_PER_SEC;
|
||||
|
||||
xen_clear_irq_pending(irq);
|
||||
|
||||
|
@ -141,8 +140,7 @@ static int do_pci_op(struct pcifront_device *pdev, struct xen_pci_op *op)
|
|||
(unsigned long *)&pdev->sh_info->flags)) {
|
||||
xen_poll_irq_timeout(irq, jiffies + 3*HZ);
|
||||
xen_clear_irq_pending(irq);
|
||||
do_gettimeofday(&tv);
|
||||
ns = timeval_to_ns(&tv);
|
||||
ns = ktime_get_ns();
|
||||
if (ns > ns_timeout) {
|
||||
dev_err(&pdev->xdev->dev,
|
||||
"pciback not responding!!!\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue