s390x/kvm: factor out build_channel_report_mcic() into cpu.h
commitb700d75eda81c371c575b759de8e260d9f147494
authorDavid Hildenbrand <david@redhat.com>
Fri, 8 Dec 2017 16:01:54 +0000 (8 17:01 +0100)
committerCornelia Huck <cohuck@redhat.com>
Thu, 14 Dec 2017 16:56:54 +0000 (14 17:56 +0100)
tree338fffa42290d4ef0e89b49b79e66af130a3fe1f
parent864c2512576ab4e0d84bda0481b15dd1820d43de
s390x/kvm: factor out build_channel_report_mcic() into cpu.h

We'll need it later on in two places. Refactor it to just indicate the
validity bits. While at it, introduce a define for the used CR14 bit (we'll
also need later on).

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20171208160207.26494-2-david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu.h
target/s390x/kvm.c