cpu.c (4ab6a1feac0a142045d3b7bdbb8182a99c0b8980) | cpu.c (8046f374a64b81fdf4f71f7a433bf4035d501521) |
---|---|
1/* 2 * QEMU S/390 CPU 3 * 4 * Copyright (c) 2009 Ulrich Hecht 5 * Copyright (c) 2011 Alexander Graf 6 * Copyright (c) 2012 SUSE LINUX Products GmbH 7 * Copyright (c) 2012 IBM Corp. 8 * --- 376 unchanged lines hidden (view full) --- 385 if (kvm_enabled() && cpu->env.cpu_state != cpu_state) { 386 kvm_s390_set_cpu_state(cpu, cpu_state); 387 } 388 cpu->env.cpu_state = cpu_state; 389 390 return s390_count_running_cpus(); 391} 392 | 1/* 2 * QEMU S/390 CPU 3 * 4 * Copyright (c) 2009 Ulrich Hecht 5 * Copyright (c) 2011 Alexander Graf 6 * Copyright (c) 2012 SUSE LINUX Products GmbH 7 * Copyright (c) 2012 IBM Corp. 8 * --- 376 unchanged lines hidden (view full) --- 385 if (kvm_enabled() && cpu->env.cpu_state != cpu_state) { 386 kvm_s390_set_cpu_state(cpu, cpu_state); 387 } 388 cpu->env.cpu_state = cpu_state; 389 390 return s390_count_running_cpus(); 391} 392 |
393int s390_get_clock(uint8_t *tod_high, uint64_t *tod_low) 394{ 395 int r = 0; 396 397 if (kvm_enabled()) { 398 r = kvm_s390_get_clock_ext(tod_high, tod_low); 399 if (r == -ENXIO) { 400 return kvm_s390_get_clock(tod_high, tod_low); 401 } 402 } else { 403 /* Fixme TCG */ 404 *tod_high = 0; 405 *tod_low = 0; 406 } 407 408 return r; 409} 410 411int s390_set_clock(uint8_t *tod_high, uint64_t *tod_low) 412{ 413 int r = 0; 414 415 if (kvm_enabled()) { 416 r = kvm_s390_set_clock_ext(*tod_high, *tod_low); 417 if (r == -ENXIO) { 418 return kvm_s390_set_clock(*tod_high, *tod_low); 419 } 420 } 421 /* Fixme TCG */ 422 return r; 423} 424 | |
425int s390_set_memory_limit(uint64_t new_limit, uint64_t *hw_limit) 426{ 427 if (kvm_enabled()) { 428 return kvm_s390_set_mem_limit(new_limit, hw_limit); 429 } 430 return 0; 431} 432 --- 123 unchanged lines hidden --- | 393int s390_set_memory_limit(uint64_t new_limit, uint64_t *hw_limit) 394{ 395 if (kvm_enabled()) { 396 return kvm_s390_set_mem_limit(new_limit, hw_limit); 397 } 398 return 0; 399} 400 --- 123 unchanged lines hidden --- |