xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v8 0/4] iommu: add rmrr Xen command line option
@ 2015-06-30 23:33 elena.ufimtseva
  2015-06-30 23:33 ` [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros elena.ufimtseva
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: elena.ufimtseva @ 2015-06-30 23:33 UTC (permalink / raw)
  To: xen-devel
  Cc: Elena Ufimtseva, kevin.tian, tim, jbeulich, yang.z.zhang,
	boris.ostrovsky

From: Elena Ufimtseva <elena.ufimtseva@oracle.com>

v8 of rmrr comman line patches.                                                 
                                                                                
Add Xen command line option rmrr to specify RMRR                                
regions for devices that are not defined in ACPI thus                           
causing IO Page Fault while booting dom0 in PVH mode.                           
These additional regions will be added to the list of                           
RMRR regions parsed from ACPI.                                                  
                                                                                
Changes in v8:                                                                  
 - removed bogus debug in patch 1 with non-functional changes;                  
 - changed PRI_RMRRL macro for formatting to reflect the fact that two arguments
   are used, so make it PRI_RMRR(s,e) for formatting inclusive RMRR range;      
   'L' is also removed from macro name, which meant to server as a type of arguments (%lx);
 - added overlapping check with RMRRs from ACPI;                                
 - added check based on paddr_bits for pfn's in extra RMRR range (not sure if   
   its redundant with mfn_valid);                                               
 - addressed while loop exit condition in extra RMRRs parser; 
      
Changes in v7:                                                                  
 - make sure RMRRs ranges are being checked correctly;                          
 - dont interrupt RMRRs checking if some of checks fails, instead               
 continue to next RMRR;                                                         
 - make rmrr variable names more obvious;                                       
 - fix debug output formatting to match type of rmrr range;                     
 - fix typos in rmrr command line document and in comments;                     
                                                                                
Changes in v6:                                                                  
 - make __parse_pci return correct result and error codes;                      
 - move add_extra_rmrr                                                          
 - previous patch was missing RMRR addresses in range check, add it here;       
 - add overlap check and range boundaries check;                                
 - moved extra rmrr structure definition to dmar.c;                             
 - change def_seg in __parse_pci type from int to bool_t;                       
 - change name for extra rmrr range to reflect they hold now pfns;   

Changes in v5:                                                                  
 - make parse_pci a wrapper and add __parse_pci with additional def_seg param   
   to identify if segment was specified;                                        
 - make possible not to define segment for each device within same rmrr;        
 - limit number of pages for one RMRR by 16;                                    
 - run mfn_valid check for every address in RMRR range;                         
 - add PCI_SBDF macro;                                                          
 - remove list for extra rmrrs as they are kept in static array;                
                                              
Elena Ufimtseva (4):
  pci: add PCI_SBDF and PCI_SEG macros
  iommu VT-d: separate rmrr addition function
  pci: add wrapper for parse_pci
  iommu: add rmrr Xen command line option for extra rmrrs

 docs/misc/xen-command-line.markdown |  13 ++
 xen/drivers/passthrough/vtd/dmar.c  | 360 ++++++++++++++++++++++++++++--------
 xen/drivers/pci/pci.c               |  11 ++
 xen/include/xen/pci.h               |   5 +
 4 files changed, 311 insertions(+), 78 deletions(-)

-- 
2.1.3

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-07-09 12:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 23:33 [PATCH v8 0/4] iommu: add rmrr Xen command line option elena.ufimtseva
2015-06-30 23:33 ` [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros elena.ufimtseva
2015-07-08 17:27   ` Konrad Rzeszutek Wilk
2015-07-09  8:10     ` Jan Beulich
2015-07-09 11:13       ` Elena Ufimtseva
2015-07-09 12:03         ` Jan Beulich
2015-06-30 23:34 ` [PATCH v8 2/4] iommu VT-d: separate rmrr addition function elena.ufimtseva
2015-07-08 17:30   ` Konrad Rzeszutek Wilk
2015-06-30 23:34 ` [PATCH v8 3/4] pci: add wrapper for parse_pci elena.ufimtseva
2015-07-08 17:32   ` Konrad Rzeszutek Wilk
2015-06-30 23:34 ` [PATCH v8 4/4] iommu: add rmrr Xen command line option for extra rmrrs elena.ufimtseva
2015-07-08 17:52   ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).