kvm: Remove unneeded memory slot reservation
The number of slots and the location of private ones changed several times in KVM's early days. However, it's stable since 2.6.29 (our required baseline), and slots 8..11 are no longer reserved since then. So remove this unneeded restriction. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> CC: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
		
							parent
							
								
									ce377af399
								
							
						
					
					
						commit
						8e045ac407
					
				@ -91,10 +91,6 @@ static KVMSlot *kvm_alloc_slot(KVMState *s)
 | 
				
			|||||||
    int i;
 | 
					    int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (i = 0; i < ARRAY_SIZE(s->slots); i++) {
 | 
					    for (i = 0; i < ARRAY_SIZE(s->slots); i++) {
 | 
				
			||||||
        /* KVM private memory slots */
 | 
					 | 
				
			||||||
        if (i >= 8 && i < 12) {
 | 
					 | 
				
			||||||
            continue;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if (s->slots[i].memory_size == 0) {
 | 
					        if (s->slots[i].memory_size == 0) {
 | 
				
			||||||
            return &s->slots[i];
 | 
					            return &s->slots[i];
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user