[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 2/2] s390x: protvirt: Support unpack facility
From: |
Christian Borntraeger |
Subject: |
Re: [PATCH v8 2/2] s390x: protvirt: Support unpack facility |
Date: |
Tue, 10 Mar 2020 10:24:57 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 10.03.20 10:00, David Hildenbrand wrote:
>
> Now that we talked about cached values, what about
>
> #if !defined(CONFIG_USER_ONLY)
> static bool s390_is_pv(void)
> {
> static S390CcwMachineState *ccw;
> Object *obj;
>
> if (ccw) {
> return ccw->pv;
> }
>
> /* we have to bail out for the "none" machine */
> obj = object_dynamic_cast(qdev_get_machine(),
> TYPE_S390_CCW_MACHINE);
> if (!obj) {
> return false;
> }
> ccw = S390_CCW_MACHINE(obj);
> return ccw->pv;
> }
> #endif
>
> and drop all env->pv checks, replacing them by s390_is_pv(). (sorry,
> should have recommended that earlier)
Yes that makes sense. Now that we have enable/disable we can use the machine pv
property.
- Re: [PATCH v7 02/15] s390x: protvirt: Support unpack facility, (continued)
- Re: [PATCH v7 02/15] s390x: protvirt: Support unpack facility, Janosch Frank, 2020/03/09
- Re: [PATCH v7 02/15] s390x: protvirt: Support unpack facility, David Hildenbrand, 2020/03/09
- [PATCH v8 1/2] s390x: ipl: Consolidate iplb validity check into one function, Janosch Frank, 2020/03/10
- [PATCH v8 2/2] s390x: protvirt: Support unpack facility, Janosch Frank, 2020/03/10
- Re: [PATCH v8 2/2] s390x: protvirt: Support unpack facility, David Hildenbrand, 2020/03/10
- Re: [PATCH v8 2/2] s390x: protvirt: Support unpack facility, Janosch Frank, 2020/03/10
- Re: [PATCH v8 2/2] s390x: protvirt: Support unpack facility, David Hildenbrand, 2020/03/10
- Re: [PATCH v8 2/2] s390x: protvirt: Support unpack facility,
Christian Borntraeger <=
- Re: [PATCH v8 1/2] s390x: ipl: Consolidate iplb validity check into one function, David Hildenbrand, 2020/03/10
- Re: [PATCH v8 1/2] s390x: ipl: Consolidate iplb validity check into one function, Christian Borntraeger, 2020/03/10
- [PATCH v8] s390x: ipl: Consolidate iplb validity check into one function, Janosch Frank, 2020/03/10
- Re: [PATCH v8] s390x: ipl: Consolidate iplb validity check into one function, Christian Borntraeger, 2020/03/10
- Re: [PATCH v8] s390x: ipl: Consolidate iplb validity check into one function, David Hildenbrand, 2020/03/10
- Re: [PATCH v8] s390x: ipl: Consolidate iplb validity check into one function, Christian Borntraeger, 2020/03/10
Re: [PATCH v7 02/15] s390x: protvirt: Support unpack facility, Viktor Mihajlovski, 2020/03/09
[PATCH v7 12/15] s390x: protvirt: Move IO control structures over SIDA, Janosch Frank, 2020/03/09
[PATCH v7 07/15] s390x: protvirt: Move STSI data over SIDAD, Janosch Frank, 2020/03/09