[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen-3.4-testing] passthrough: pt_bar_mapping etc.: use correct CMD for PCI BAR mapping etc.



*** New tip has no discernable common ancestor with previous history ***

commit 5d767b7b3fac52336f59e5b40d8befa6b1909937
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date:   Tue May 5 15:22:17 2009 +0100

    passthrough: pt_bar_mapping etc.: use correct CMD for PCI BAR mapping etc.
    
    dbb8aafa702b8b4f5568e08641d98471fd04e0f8 has a bug:
    The virtual CMD value we get from reg_entry->data is not the proper
    value because reg_entry->data only holds the emulated bits and the
    PCI_COMMAND_IO/PCI_COMMAND_MEMORY bits are not in it.  Instead, we can
    use pt_pci_read_config(&ptdev->dev, PCI_COMMAND, 2) to get the proper
    value.
    
    We should only update the mapping of the related BAR, NOT the mappings
    of ALL BARs.
    
    In pt_exp_rom_bar_reg_write(), we should also update the mapping. And
    for PCI_ROM_SLOT, when the PCI_ROM_ADDRESS_ENABLE bit is 0, we should
    not have the mapping.
    
    Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
--
generated by git-patchbot for /home/xen/git/qemu-xen-3.4-testing.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.