|
From: | Pierre Morel |
Subject: | Re: [PATCH v1 6/9] s390x: kvm: topology: interception of PTF instruction |
Date: | Thu, 15 Jul 2021 18:12:38 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 7/14/21 6:53 PM, Pierre Morel wrote:
Interception of the PTF instruction depending on the new KVM_CAP_S390_CPU_TOPOLOGY KVM extension. A global value is used to remember if a Topology change occured since the last interception of a PTF instruction with function code 0. Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
...snip...
+int s390_handle_ptf(S390CPU *cpu, uint8_t r1, uintptr_t ra)+{ + CPUS390XState *env = &cpu->env; + uint64_t reg = env->regs[r1]; + uint8_t fc = reg & S390_TOPO_FC_MASK; + + if (!s390_has_feat(S390_FEAT_CONFIGURATION_TOPOLOGY)) { + s390_program_interrupt(env, PGM_OPERAND, ra);
sorry, found an error: s/OPERAND/OPERATION/
...snip... -- Pierre Morel IBM Lab Boeblingen
[Prev in Thread] | Current Thread | [Next in Thread] |