]> xenbits.xensource.com Git - xenclient/ioemu.git/commitdiff
Remove opregion mapping. It's done by xc_hvm_build now.
authorJean Guyader <jean.guyader@eu.citrix.com>
Tue, 17 Feb 2009 16:49:21 +0000 (16:49 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Tue, 17 Feb 2009 16:50:57 +0000 (16:50 +0000)
hw/pass-through.c

index 0b5f15066b888ae7e78f13753d24bf60ec3e1d6b..dc4698f290c13fd1599fe80fce0bdb119bb3fdc5 100644 (file)
@@ -2937,7 +2937,6 @@ struct pt_dev * register_real_device(PCIBus *e_bus,
     struct pci_config_cf8 machine_bdf;
     int free_pci_slot = -1;
     uint16_t class, vendor_id;
-       uint32_t opregion;
 
     PT_LOG("Assigning real physical device %02x:%02x.%x ...\n",
         r_bus, r_dev, r_func);
@@ -3060,13 +3059,6 @@ struct pt_dev * register_real_device(PCIBus *e_bus,
                                       DPCI_ADD_MAPPING);
         rc |= xc_domain_memory_mapping(xc_handle, domid, 0xa0, 0xa0, 32,
                                        DPCI_ADD_MAPPING);
-        if ( vendor_id == 0x8086 )
-               {
-                       opregion = pt_pci_host_read_long(0, 2, 0, 0xfc) >> XC_PAGE_SHIFT;
-                       PT_LOG("map opregion 0x%x\n", opregion);
-            rc |= xc_domain_memory_mapping(xc_handle, domid, 0x7d5ae, opregion, 2,
-                                           DPCI_ADD_MAPPING);
-               }
         if ( rc != 0 )
         {
             PT_LOG("legacy mapping failed !\n");
@@ -3091,7 +3083,6 @@ int unregister_real_device(int php_slot)
     uint32_t bdf = 0;
     int rc = -1;
     uint16_t class, vendor_id;
-       uint32_t opregion;
 
     if ( php_slot < 0 || php_slot >= PHP_SLOT_LEN )
        return -1;
@@ -3144,12 +3135,6 @@ int unregister_real_device(int php_slot)
                                        DPCI_REMOVE_MAPPING);
         rc |= xc_domain_memory_mapping(xc_handle, domid, 0xa0, 0xa0, 32,
                                         DPCI_REMOVE_MAPPING);
-               if ( vendor_id == 0x8086 )
-               {
-                       opregion = pt_pci_host_read_long(0, 2, 0, 0xfc) >> XC_PAGE_SHIFT;
-                       rc |= xc_domain_memory_mapping(xc_handle, domid, 0x7d5ae, opregion, 2,
-                                                                                  DPCI_REMOVE_MAPPING);
-               }
         if ( rc != 0 )
         {
             PT_LOG("legacy unmapping failed !\n");