diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-03-12 13:18:33 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-03-12 23:08:33 +0100 |
| commit | 74cd82adc87552c7ef6d255069a974b4ebeab4a1 (patch) | |
| tree | c863d01ce69598e669b3e1a3af8cda0b395af570 /contrib/qemu | |
| parent | 4b17d042c7e4f6e5b5a770181e2ebd53ec8e73d4 (diff) | |
| download | passt-74cd82adc87552c7ef6d255069a974b4ebeab4a1.tar passt-74cd82adc87552c7ef6d255069a974b4ebeab4a1.tar.gz passt-74cd82adc87552c7ef6d255069a974b4ebeab4a1.tar.bz2 passt-74cd82adc87552c7ef6d255069a974b4ebeab4a1.tar.lz passt-74cd82adc87552c7ef6d255069a974b4ebeab4a1.tar.xz passt-74cd82adc87552c7ef6d255069a974b4ebeab4a1.tar.zst passt-74cd82adc87552c7ef6d255069a974b4ebeab4a1.zip | |
conf: Detect vhost-user mode earlier
We detect our operating mode in conf_mode(), unless we're using vhost-user
mode, in which case we change it later when we parse the --vhost-user
option. That means we need to delay parsing the --repair-path option (for
vhost-user only) until still later.
However, there are many other places in the main option parsing loop which
also rely on mode. We get away with those, because they happen to be able
to treat passt and vhost-user modes identically. This is potentially
confusing, though. So, move setting of MODE_VU into conf_mode() so
c->mode always has its final value from that point onwards.
To match, we move the parsing of --repair-path back into the main option
parsing loop.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu')
0 files changed, 0 insertions, 0 deletions
