]> git.baikalelectronics.ru Git - kernel.git/commit
xen-pciback: notify hypervisor about devices intended to be assigned to guests
authorJan Beulich <JBeulich@suse.com>
Tue, 12 Mar 2013 15:06:23 +0000 (15:06 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 22 Mar 2013 14:20:55 +0000 (10:20 -0400)
commitb462968cf6463e777735819d6da0df71947894be
treee50ce461455625ad48e450057e6fa23ab88ac9cf
parentd4651a25d50f902a218e41a5153c2742266f5bb7
xen-pciback: notify hypervisor about devices intended to be assigned to guests

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 <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/xen/hypercall.h
drivers/xen/fallback.c
drivers/xen/xen-pciback/pci_stub.c
include/xen/interface/physdev.h