Browse Source

qemu add virtiogpu and disable hvf on x64

Signed-off-by: virtbuilder_pel7x64builder0 <virtbuilder@powerel.org>
master
virtbuilder_pel7x64builder0 5 years ago
parent
commit
5fcfd9a649
  1. 31
      SPECS/qemu.spec

31
SPECS/qemu.spec

@ -132,6 +132,7 @@ Requires: %{name}-system-x64 = %{version}-%{release} @@ -132,6 +132,7 @@ Requires: %{name}-system-x64 = %{version}-%{release}
This is a meta-package that provides a qemu-system-<arch> package for native
architectures where kvm can be enabled.


%package virtiofs
Summary: QEMU virtiofs daemon and tools
Group: Development/Tools
@ -139,14 +140,21 @@ Group: Development/Tools @@ -139,14 +140,21 @@ Group: Development/Tools
This package provides a virtiofs daemon and command line tool


%package img
%package virtiogpu
Summary: QEMU virtiogpu tools
Group: Development/Tools
%description virtiogpu
This package provides a virtiogpu command line tool


%package img
Summary: QEMU command line tool for manipulating disk images
Group: Development/Tools
%description img
This package provides a command line tool for manipulating disk images


%package common
%package common
Summary: QEMU common files needed by all QEMU targets
Group: Development/Tools
Requires(post): /usr/bin/getent
@ -366,7 +374,10 @@ emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu x86_64-softmmu mi @@ -366,7 +374,10 @@ emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu x86_64-softmmu mi
--block-drv-ro-whitelist=vmdk,vhdx,vpc \
--extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \
--extra-cflags="$cflags -Wall" \
--target-list="$nativebuildarch" --enable-kvm --enable-tcg --enable-tcg-interpreter --enable-spice --enable-hax --enable-hvf \
--target-list="$nativebuildarch" --enable-kvm --enable-tcg --enable-tcg-interpreter --enable-spice --enable-hax \
%ifnarch x86_64
--enable-hvf \
%endif
"$@"
make V=1 %{?_smp_mflags} $buildldflags
make DESTDIR=%{buildroot} install
@ -389,6 +400,9 @@ make DESTDIR=%{buildroot} install @@ -389,6 +400,9 @@ make DESTDIR=%{buildroot} install
--extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \
--extra-cflags="$cflags -Wall" \
--target-list="$emulatedbuildarch" --enable-kvm --enable-tcg --enable-tcg-interpreter --enable-spice --enable-hax \
%ifarch x86_64
--enable-hvf \
%endif
"$@"
make V=1 %{?_smp_mflags} $buildldflags
make DESTDIR=%{buildroot} install
@ -655,6 +669,13 @@ getent passwd qemu >/dev/null || \ @@ -655,6 +669,13 @@ getent passwd qemu >/dev/null || \
%{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json


%files virtiogpu
%ifarch x86_64
%{_libexecdir}/vhost-user-gpu
%{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
%endif


%files guest-agent
%doc COPYING
%{_bindir}/qemu-ga
@ -748,10 +769,6 @@ getent passwd qemu >/dev/null || \ @@ -748,10 +769,6 @@ getent passwd qemu >/dev/null || \
%{_datadir}/%{name}/opensbi-riscv64-virt-fw_jump.bin


#%files kvm-tools
#%{_bindir}/kvm_stat


%files system-x64
%{_bindir}/qemu-system-x86_64
%{_datadir}/systemtap/tapset/qemu-system-x86_64*.stp

Loading…
Cancel
Save