History

KVM: s390: introduce module parameter kvm.use_gisa

The boolean module parameter "kvm.use_gisa" controls if newly created guests will use the GISA facility if provided by the host system. The default is yes. # cat /sys/module/kvm/parameters/use_gisa Y The parameter can be changed on the fly. # echo N > /sys/module/kvm/parameters/use_gisa Already running guests are not affected by this change. The kvm s390 debug feature shows if a guest is running with GISA. # grep gisa /sys/kernel/debug/s390dbf/kvm-$pid/sprintf 00 01582725059:843303 3 - 08 00000000e119bc01 gisa 0x00000000c9ac2642 initialized 00 01582725059:903840 3 - 11 000000004391ee22 00[0000000000000000-0000000000000000]: AIV gisa format-1 enabled for cpu 000 ... 00 01582725059:916847 3 - 08 0000000094fff572 gisa 0x00000000c9ac2642 cleared In general, that value should not be changed as the GISA facility enhances interruption delivery performance. A reason to switch the GISA facility off might be a performance comparison run or debugging.

Michael Mueller committed 6 years ago

Commit cc674ef1 parent 04ed89d1 file · +7 −1Browse files

Unified · Split

arch/s390/kvm/kvm-s390.c+7−1
@@ -185,6 +185,11 @@ static u8 halt_poll_max_steal = 10; · 184 unmodified lines
185module_param(halt_poll_max_steal, byte, 0644);185module_param(halt_poll_max_steal, byte, 0644);
186MODULE_PARM_DESC(halt_poll_max_steal, "Maximum percentage of steal time to allow polling");186MODULE_PARM_DESC(halt_poll_max_steal, "Maximum percentage of steal time to allow polling");
187 187
188/* if set to true, the GISA will be initialized and used if available */
189static bool use_gisa = true;
190module_param(use_gisa, bool, 0644);
191MODULE_PARM_DESC(use_gisa, "Use the GISA if the host supports it.");
192
188/*193/*
189 * For now we handle at most 16 double words as this is what the s390 base194 * For now we handle at most 16 double words as this is what the s390 base
190 * kernel handles and stores in the prefix page. If we ever need to go beyond195 * kernel handles and stores in the prefix page. If we ever need to go beyond
@@ -2732,7 +2737,8 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) · 2541 unmodified lines
2732 kvm->arch.use_skf = sclp.has_skey;2737 kvm->arch.use_skf = sclp.has_skey;
2733 spin_lock_init(&kvm->arch.start_stop_lock);2738 spin_lock_init(&kvm->arch.start_stop_lock);
2734 kvm_s390_vsie_init(kvm);2739 kvm_s390_vsie_init(kvm);
2735 kvm_s390_gisa_init(kvm);2740 if (use_gisa)
2741 kvm_s390_gisa_init(kvm);
2736 KVM_EVENT(3, "vm 0x%pK created by pid %u", kvm, current->pid);2742 KVM_EVENT(3, "vm 0x%pK created by pid %u", kvm, current->pid);
2737 2743
2738 return 0;2744 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t