| 
									
										
										
										
											2016-02-08 18:08:51 +00:00
										 |  |  | #include "qemu/osdep.h"
 | 
					
						
							| 
									
										
										
										
											2020-08-04 20:00:40 +02:00
										 |  |  | #include "libqos-pc.h"
 | 
					
						
							|  |  |  | #include "malloc-pc.h"
 | 
					
						
							|  |  |  | #include "pci-pc.h"
 | 
					
						
							| 
									
										
										
										
											2015-01-19 15:15:55 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | static QOSOps qos_ops = { | 
					
						
							| 
									
										
										
										
											2018-11-29 12:37:04 +01:00
										 |  |  |     .alloc_init = pc_alloc_init, | 
					
						
							| 
									
										
										
										
											2018-07-19 13:50:27 +02:00
										 |  |  |     .qpci_new = qpci_new_pc, | 
					
						
							| 
									
										
										
										
											2016-09-29 12:32:45 +02:00
										 |  |  |     .qpci_free = qpci_free_pc, | 
					
						
							| 
									
										
										
										
											2016-09-29 12:32:46 +02:00
										 |  |  |     .shutdown = qtest_pc_shutdown, | 
					
						
							| 
									
										
										
										
											2015-01-19 15:15:55 -05:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-28 15:27:51 -04:00
										 |  |  | QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return qtest_vboot(&qos_ops, cmdline_fmt, ap); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-19 15:15:55 -05:00
										 |  |  | QOSState *qtest_pc_boot(const char *cmdline_fmt, ...) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     QOSState *qs; | 
					
						
							|  |  |  |     va_list ap; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     va_start(ap, cmdline_fmt); | 
					
						
							|  |  |  |     qs = qtest_vboot(&qos_ops, cmdline_fmt, ap); | 
					
						
							|  |  |  |     va_end(ap); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-11 12:20:01 -05:00
										 |  |  |     qtest_irq_intercept_in(qs->qts, "ioapic"); | 
					
						
							| 
									
										
										
										
											2016-09-13 14:52:44 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-19 15:15:55 -05:00
										 |  |  |     return qs; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void qtest_pc_shutdown(QOSState *qs) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2016-09-29 12:32:46 +02:00
										 |  |  |     return qtest_common_shutdown(qs); | 
					
						
							| 
									
										
										
										
											2015-01-19 15:15:55 -05:00
										 |  |  | } |